Formatting library for Forge
Project description
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"]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
forge_format-1.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file forge_format-1.1.0.tar.gz
.
File metadata
- Download URL: forge_format-1.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.11.2 Linux/5.15.0-1034-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b52f9790a80b7c2189fe0878f1fa3859a8aa973e1b7be6328b82d04fefc6fba |
|
MD5 | edb2885991ee85c470c6beefab1e94ba |
|
BLAKE2b-256 | e1cf110e7f689d4b167225678615c74606d187c8bdc2344b33b3a87bdeb9db5e |
File details
Details for the file forge_format-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: forge_format-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.11.2 Linux/5.15.0-1034-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 113838d766ce046142e66baee5bd2fc24701d26476ee0203e54836f9c08bb64d |
|
MD5 | d177ad2879643c83418744246ebac5b1 |
|
BLAKE2b-256 | d2fd6293ba702fa3e51d1585ad5e2a2e56afcaa3228e4539ad606d6c816e6d22 |