black-pre-commit-example-setup
blue
black-pre-commit-example-setup | blue | |
---|---|---|
1 | 6 | |
0 | 383 | |
- | - | |
5.1 | 0.0 | |
about 2 months ago | 3 months ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
black-pre-commit-example-setup
-
How to setup Black and pre-commit in python for auto text-formatting on commit
All the Code used in this article can be found on this GitHub repo here
blue
-
Which code formatter do you use?
I use blue - a fork of black. I set the line lengths (much) longer.
-
Django now uses black to format it's codebase
You would like https://github.com/grantjenks/blue . Its like black, but, among a few other things, defaults to using single quotes.
-
Black vs yapf vs ???
Try https://github.com/grantjenks/blue/ instead of black?
-
The Black formatter goes stable - release 22.1.0
Your people are out there: https://github.com/grantjenks/blue
-
PEP proposal: Automatically Formatting the CPython Code
Just came across blue yesterday which attempts to solve some of the problems with black's approach: https://github.com/grantjenks/blue
What are some alternatives?
black - The uncompromising Python code formatter [Moved to: https://github.com/psf/black]
awesome-python-code-formatters - A curated list of awesome Python code formatters
Black-Tool - Install the tools and start Attacking , black-tool v5.5.5 ! ⬛
black - The uncompromising Python code formatter [Moved to: https://github.com/psf/black]
pre-commit-hooks - Some out-of-the-box hooks for pre-commit
jupyterlab_code_formatter - A JupyterLab plugin to facilitate invocation of code formatters.
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
mdformat - CommonMark compliant Markdown formatter
black - The uncompromising Python code formatter
datamodel-code-generator - Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
darker - Apply black reformatting to Python files only in regions changed since a given commit. For a practical usage example, see the blog post at https://dev.to/akaihola/improving-python-code-incrementally-3f7a
codespell - check code for common misspellings