Unimport

Latest version: v1.2.1

Safety actively analyzes 613777 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 7

1.2.1

Added

- Python 3.12 support added

1.2.0

Changed

- Python 3.6 support dropped
- Python 3.7 support dropped

Fixed

- Improved Type Comment Analysis

> To ensure accurate type comment analysis, a crucial fix was implemented in the code.
> The update involves refining the process by adding a check within ast.AnnAssign and
> ast.arg types. Specifically, the code now includes a verification that
> visit_Constant occurs under an annotation, addressing unnecessary name discovery
> issues for better accuracy in type_comment assessment.

python
import sys
from typing import (
List,
)


test_list: List[str] = ["spam", "eggs"] it thought spam and eggs were a ast.Name object.

1.1.0

Added

- Support for Python version 3.11.
- It is suitable for the versions we officially support, Unimport cannot be used with Python version 3.12.

1.0.1

Changed

- Implement `strtobool` function (and remove distutils dependency)
[297](https://github.com/hakancelikdev/unimport/issues/297)

1.0.0

Added

- Automatically pick up config options from setup.cfg if it is present in the project
root else check and if it exists use pyproject.toml.
[256](https://github.com/hakancelikdev/unimport/issues/256)

If you want you can disable this feature by passing `--disable-auto-discovery-config`

- Add github-action [229](https://github.com/hakancelikdev/unimport/issues/229)
- Add support like command line commands in configuration files. 287

Fixed

- ignore-init setting is not working from command line call
[263](https://github.com/hakancelikdev/unimport/issues/263)
- Running without options or a config file
[281](https://github.com/hakancelikdev/unimport/issues/281)
- Attribute as import refactor 284

Changed

- Raise more human-readable exceptions when the key is mistyped in the configuration
[286](https://github.com/hakancelikdev/unimport/issues/286)

0.16.1

Fixed

- Fix: ignore-init setting is not working from the command line call
[263](https://github.com/hakancelikdev/unimport/issues/263)

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.