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 hashes)
Built Distribution
Close
Hashes for flake8_django-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af2f2ab1492e76e318b0147aa833c078484acfec01b2eff54a7ecbe328f8519 |
|
MD5 | 24318302f6f7d3f03a2491674d57fc08 |
|
BLAKE2b-256 | 73c7a483e9c4082075e58b8e6ede131f32f4632e4d292bc3600aa0e5afe8eda4 |