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 supported4 Subscribers
Add a CodeTriage badge to black
Help out
- Issues
- Format attribute `# fmt: wrap-list=16` to specify format of large arrays
- "unindent does not match any outer indentation level" for valid Python syntax
- Enforce leading vs trailing spaces in existing multiline strings
- Break long lines at dominant semantic features
- Consider not wrapping a single import when the line is too long
- Trailing comma gives newline on wrong expressions
- Strip even more redundant for parentheses
- Produce reports containing file/line information of bad formatting
- Turn off magic trailing commas by default
- string_processing: Use explicit string concatenation
- Docs
- Python not yet supported