Show HN: ASort – Python Utility For Sorting __all__ lists

https://github.com/cpendery/asort
by cpendery • 4 years ago
2 0 4 years ago

I got tired of having to keep my __all__ lists sorted in python by hand as it helps keep them more readable so I made this to do it for me. If you aren't familiar with __all__ lists, here is a good post explaining them https://stackoverflow.com/questions/44834/what-does-all-mean...

Has support for pre-commit along with cli and python api usage. Shoutout to the isort project which was this inspiration for asort's api and name. It works with black automatically.

Related Stories

Loading related stories...

Source preview

github.com