django-migrations-formatter
This Django library will format Django migrations using black and isort.
Installation
Start by installing django-migrations-formatter from PyPI:
(env)$ python -m pip install django-migrations-formatter
You will also need to make sure to have black and/or isort installed.
Without them, this library doesn't provide any value. For ease of use, you can
install either of them by including them as "extras" during the installation.
(env)$ python -m pip install "django-migrations-formatter[black,isort]"
Then you need to add django_migrations_formatter.apps.MigrationsFormatter to
your INSTALLED_APPS:
INSTALLED_APPS = [
...,
'django_migrations_formatter.apps.MigrationsFormatter',
]
Contributing
The project uses black and isort for formatting its code. flake8 is used for linting. All these are combined into pre-commit to run before each commit and push. To set it up:
(env)$ python -m pip install '.[black,dev,isort,test]'
(env)$ pre-commit install -t pre-commit -t pre-push --install-hooks
To run the unit tests:
(env)$ django-admin test --pythonpath . -v 2 --settings=tests.settings
If you spot an problem, please open an issue on GitHub.
Metadata
Release files for django-migrations-formatter 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| django-migrations-formatter-1.0.0.tar.gz | 7.4 kB | Without provenance | Details for django-migrations-formatter-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_migrations_formatter-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for django_migrations_formatter-1.0.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / django-migrations-formatter-1.0.0.tar.gz
| Download URL | django-migrations-formatter-1.0.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
229b14d5cdfb32d329437691854cea139aa493ad6cb6eaa0194227686b2f61d4
|
|
BLAKE2b-256 checksum How to use checksums |
3fb35deb5808160102632aa6b4d193088932eeecf2ac82126a146bbdb813106e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
|
Release files / django_migrations_formatter-1.0.0-py3-none-any.whl
| Download URL | django_migrations_formatter-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
122773e221bfa7d3e0d395a3e7640af7063c9800560b27eee4e1b0a0e32413e0
|
|
BLAKE2b-256 checksum How to use checksums |
9d4766cc63dfa4c145af6e91cbb06f88fc2c381035edf368f4ac3d2478e6dd5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
|
Security for django-migrations-formatter 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.