Plugin to catch bad style specific to Django Projects
Project description
flake8-django
A flake8 plugin for Django projects.
Installation
To be added
List of warnings
Warning | Description |
---|---|
DJ01 |
Using null=True is not recommended for some of the Django ORM fields. E.g. CharField , EmailField , ImageField , FileField , BooleanField , UUIDField , SlugField , TextField |
DJ02 |
Using blank=True is not recommended on BooleanField , use NullBooleanField instead |
DJ03 |
Using dashes in url names is discouraged, use underscores instead |
Licence
GPL
Thanks
@stummjr for teaching me AST, and what I could do with it. His blog is cool.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-django-0.0.1.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file flake8-django-0.0.1.tar.gz
.
File metadata
- Download URL: flake8-django-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97576b939efe89fba49dd5436ad62adababa00511c2e8a96491b9551668f196b |
|
MD5 | 2fc6c480bb180e90cc4f8f3974a8de30 |
|
BLAKE2b-256 | 2d08f8bdfe38923d177df6fde0df3521e51905b0cefcbe7dfcc1da0ec591a2f2 |
Provenance
File details
Details for the file flake8_django-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: flake8_django-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af2f2ab1492e76e318b0147aa833c078484acfec01b2eff54a7ecbe328f8519 |
|
MD5 | 24318302f6f7d3f03a2491674d57fc08 |
|
BLAKE2b-256 | 73c7a483e9c4082075e58b8e6ede131f32f4632e4d292bc3600aa0e5afe8eda4 |