Formatting library for Forge
Project description
forge-format
A unified, opinionated code formatting command for Django projects.
Uses black and isort to format Python code.
Installation
Forge installation
The forge-format
package is a dependency of forge
and is available as forge format
.
If you use the Forge quickstart, everything you need will already be set up.
The standard Django installation can give you an idea of the steps involved.
Standard Django installation
This package can be used without forge
by installing it as a regular Django app.
First, install forge-format
from PyPI:
pip install forge-format
Then add it to your INSTALLED_APPS
in settings.py
:
INSTALLED_APPS = [
...
"forgeformat",
]
Now you will have access to the format
command:
python manage.py format
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-0.2.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for forge_format-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5635279dfa7bf06e25dec9f8d60694e9a3457eea27e1beeb42d2ad7a49421b6 |
|
MD5 | 3bd8d3f52135e058f775aa84d8729a25 |
|
BLAKE2b-256 | 427a4e51c905a24bde0a51de31e354fe3d69c51fef337a748e345fd2fdc342d4 |