forge-format
A unified, opinionated code formatting command for Django projects.
Uses black and ruff to format Python code.
Installation
First, install forge-format from PyPI:
pip install forge-format
Now you will have access to the format command:
forge format
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 pyproject.toml:
[tool.ruff]
# Never enforce `E501` (line length violations).
ignore = ["E501"]
Metadata
Release files for forge-format 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| forge_format-1.1.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| forge_format-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / forge_format-1.1.0.tar.gz
| Download URL | forge_format-1.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b52f9790a80b7c2189fe0878f1fa3859a8aa973e1b7be6328b82d04fefc6fba
|
|
BLAKE2b-256 checksum How to use checksums |
e1cf110e7f689d4b167225678615c74606d187c8bdc2344b33b3a87bdeb9db5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.11.2 Linux/5.15.0-1034-azure
|
Release files / forge_format-1.1.0-py3-none-any.whl
| Download URL | forge_format-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
113838d766ce046142e66baee5bd2fc24701d26476ee0203e54836f9c08bb64d
|
|
BLAKE2b-256 checksum How to use checksums |
d2fd6293ba702fa3e51d1585ad5e2a2e56afcaa3228e4539ad606d6c816e6d22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.11.2 Linux/5.15.0-1034-azure
|