Skip to main content

Tool for reordering python imports

Project description

reorder-python-imports-black

Fork of reorder-python-imports for interoperability with black.

pip install reorder-python-imports-black

Black wants a newline between the module docstring and the imports, upstream reorder-python-imports does not. Neither project wants to change, if you want to use both in your CI they will get into a fight.

The incompatibility is detailed more here.

Why fork?

Someone already attempted to PR a fix in reorder-python-imports #370, but it was promptly closed.

The upstream maintainer closes/locks issues about the incompatibility, appears uninterested (#366, #367, #373, #375...)

Any other differences?

This package also adds an entry point rpi, because it was a drag typing out reorder-python-imports. The original console script remains, though, and they do the same thing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reorder_python_imports_black-3.12.0.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

reorder_python_imports_black-3.12.0-py2.py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page