Skip to main content

Plugin to catch bad style specific to Django Projects

Project description

flake8-django

Build Status

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


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)

Uploaded Source

Built Distribution

flake8_django-0.0.1-py3-none-any.whl (3.4 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