Skip to main content

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)

Uploaded Source

Built Distribution

forge_format-0.2.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page