A unified, opinionated code formatting command for Django projects.
forge-format from PyPI:
pip install forge-format
Now you will have access to the
Note that if you're using black + ruff for the first time,
a common issue is to get a bunch of
E501 Line too long errors on code comments.
This is because black doesn't fix line lengths on comments!
If there are more than you want to fix, just add this to your
[tool.ruff] # Never enforce `E501` (line length violations). ignore = ["E501"]