Skip to content

Latest commit

 

History

History
169 lines (122 loc) · 5.29 KB

HISTORY.rst

File metadata and controls

169 lines (122 loc) · 5.29 KB

History

0.8.0 (TBD)

  • Removing unused imports via unused_imports bundled-in plugin.

  • Grouping all libraries separately via separate_libs bundled-in plugin.

  • PEP263 support. importanize not honors encoding comment on top of the file on how it reads python source files.

  • Basic plugins via pluggy.

  • Added support for .ini files configuration style.

  • In addition to .importanizerc config can be read from setup.cfg, importanize.ini, importanize.json and tox.ini.

  • Added --no-auto-pipe flag in case incorrect auto pipe detection.

  • Added lines formatter which formats all imports on individual lines

    from package.subpackage.module.submodule import CONSTANT
    from package.subpackage.module.submodule import Klass
    from package.subpackage.module.submodule import bar
    from package.subpackage.module.submodule import foo
    from package.subpackage.module.submodule import rainbows
  • Added after_imports_normalize_new_lines configuration.

  • Complete refactor of parsing imports. No more string splitting. Advantage is that comments around imports are now fully supported:

    # standalone comment
    from foo import bar  # inline comment
  • Importanize itself can only run on Python 3 but it can importanize Python 2 files.

  • mypy is used to check complete repository.

0.7.0 (2018-06-06)

  • Fixed removing first line in files without imports.
  • Added --list option to list all found imports grouped by same packages as in config.

0.6.4 (2018-05-29)

  • Added support for custom line length.

0.6.3 (2018-01-27)

  • Fixed (again) importanize hanging when provided relative file path when finding sub-configurations.

0.6.2 (2018-01-08)

  • Fixed importanize failing on empty files. Thanks Milind.
  • Fixed importanize hanging when provided relative file path when finding sub-configurations. Thanks Milind.

0.6.1 (2017-10-06)

  • Fixed sub-configrations. They are searched when organizing individual files now.

0.6.0 (2017-10-06)

  • Added support for sub-configurations when .importanize is found.
  • Added support for add_imports in configuration.

0.5.3 (2017-06-06)

  • 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 (2017-05-18)

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

0.5.1 (2017-05-09)

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

0.5.0 (2017-05-03)

  • Added --ci flag to validate import organization in files
  • Added sitepackages import group. Thanks Pamela. 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

0.4.1 (2015-07-28)

  • Fixed a bug where importanize did not correctly detect stdlibs on Windows (see #29)
  • Removed future dependency since six>=1.9 includes all the used features
  • Fixed tests to be executable on Windows

0.4 (2015-04-13)

  • 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 for example)
  • Fixes a bug where wildcard leaf imports were combined with other others (see #25 for example)

0.3 (2015-01-18)

  • Using tokens to parse Python files. As a result this allows to fix how comments are handled (see #21 for example)

0.2 (2014-10-30)

  • New "exclude" config which allows to skip files
  • Presetving origin file new line characters
  • Traversing parent paths to find importanize config file

0.1.4 (2014-10-12)

  • Multiple imports (e.g. import a, b) are normalized instead of exiting
  • Multiple imports with the same stem are combined into single import statement (see #17 for example)

0.1.3 (2014-09-15)

  • Fixed where single line triple-quote docstrings would cause none of the imports to be recognized

0.1.2 (2014-09-15)

  • Fixed where import leafs were not properly sorted for mixed case (aka CamelCase)

0.1.1 (2014-09-07)

  • Ignoring comment blocks when parsing for imports
  • Fixed bug when imports start on a first line, extra lines were being added to the file.

0.1.0 (2014-09-07)

  • First release on PyPI.