Importanize

Latest version: v0.7.0

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

Scan your dependencies

Page 2 of 4

0.5.3

~~~~~~~~~~~~~~~~~~

* Added support to customize number of new lines added after imports
via ``after_imports_new_lines`` configuration.
Useful when using auto formatters such as ``yapf``.

0.5.2

~~~~~~~~~~~~~~~~~~

* Skipping directories which makes skipping subfolders much faster
* Fixed bug which incorrectly skipped files

0.5.1

~~~~~~~~~~~~~~~~~~

* Fixed bug which incorrectly removed duplicate leafless imports which had different ``as`` names

0.5.0

~~~~~~~~~~~~~~~~~~

* Added ``--ci`` flag to validate import organization in files
* Added ``sitepackages`` import group. Thanks `Pamela <https://github.com/PamelaM>`_.
See ``README`` for more info
* Added pipe handling (e.g. ``cat foo.py | importanize``)
* Fixed bug which incorrectly sorted imports with aliases (e.g. ``import foo as bar``)
* Files are not overridden when imports are already organized.
Useful in precommit hooks which detect changed files.
* Released as Python `wheel <http://pythonwheels.com/>`_

0.4.1

~~~~~~~~~~~~~~~~~~

* Fixed a bug where ``importanize`` did not correctly detect stdlibs on Windows
(see `29 <https://github.com/miki725/importanize/issues/29/>`_)
* Removed ``future`` dependency since ``six>=1.9`` includes all the used features
* Fixed tests to be executable on Windows

0.4

~~~~~~~~~~~~~~~~

* Added multiple formatter options. Can be used using ``--formatter``
flag or can be set in the configuration file.
* Fixes a bug in parsing imports when encountering both ``\`` and ``()``
(see `26 <https://github.com/miki725/importanize/issues/26>`_ for example)
* Fixes a bug where wildcard leaf imports were combined with other others
(see `25 <https://github.com/miki725/importanize/issues/25/>`_ for example)

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.