Skip to content

wimglenn/reorder-python-imports-black

 
 

Repository files navigation

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.

About

Rewrites source to reorder python imports

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%