black
https://github.com/psf/black
Python
The uncompromising Python code formatter
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Python not yet supported3 Subscribers
Add a CodeTriage badge to black
Help out
- Issues
- Add preview support for formatting Cython files
- Project-relative cache-dir allows unrestricted pickle.load of attacker-controlled data
- fix(lines): do not add blank lines before # endregion comments
- Treat ruff directives as pragma comments (#5260)
- Honor nested .gitignore negations (deepest match wins)
- Walk gitignored directories when negation patterns exist
- Treat # ruff: ignore as a pragma under preview
- Parenthesize operator chains in preview (#4455)
- feat(preview): split binary operations before operator
- Fix preview splitting of commented method chains
- Docs
- Python not yet supported