Skip to main content

flake8-django

CircleCI

A flake8 plugin for Django projects.

Installation

Install from pip with:

$ pip install flake8-django

Testing

flake8-django uses pytest for tests. To run them use:

$ pytest

Run coverage report using:

$ pytest --cov=.

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 locals() in render function is not recommended, use explicit arguments
DJ04 Using dashes in url names is discouraged, use underscores instead
DJ05 URLs include() should set a namespace

Licence

GPL

Thanks

@stummjr for teaching me AST, and what I could do with it. His blog is cool.

Metadata

Release files for flake8-django 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-django 0.0.2
File Size Uploaded Provenance Actions
flake8-django-0.0.2.tar.gz 2.3 kB Without provenance Details for flake8-django-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-django 0.0.2
File Interpreter ABI Platform Actions
flake8_django-0.0.2-py3-none-any.whl Python 3 none any Details for flake8_django-0.0.2-py3-none-any.whl

Total release size: 17.8 kB

Release files / flake8-django-0.0.2.tar.gz

Download URL flake8-django-0.0.2.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a27a44fe8f438468f2a5d7f453c7eb49850e64ba814975298140b7de9b4864e5
BLAKE2b-256 checksum
How to use checksums
0d7c36d021e8e306fdbd722b8bf01ff7b4b4836367e3448291b88767437a6c58
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / flake8_django-0.0.2-py3-none-any.whl

Download URL flake8_django-0.0.2-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5d1acda4220e7ad53c2290fbe21cfccbb1d1604ddc048429d63d84e22707a6f
BLAKE2b-256 checksum
How to use checksums
7623a4ba06c0ac9f41f8df972657de386e871223a348cd7bead5e9a02dcfc0cb
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for flake8-django 0.0.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page