{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/21"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/4"}],"enrichment":{"capability":"A flake8 plugin that detects Django-specific code style violations and anti-patterns in Django projects, enforcing rules like proper null handling on model fields, correct ModelForm configuration, and model method definitions.","skillfed_tags":["django-linting","flake8-plugin","code-style"],"use_cases":["Enforce consistent Django model field definitions across a team by catching null=True on CharField/TextField.","Catch ModelForm misconfigurations (exclude vs. fields, __all__ usage) during code review.","Ensure all Django models define __str__ methods for better debugging and admin interface display.","Validate that @receiver decorators are placed correctly at the top of other decorators.","Enforce Django Style Guide compliance for model inner class and method ordering.","Integrate Django linting into CI/CD pipelines to catch style violations before merge."],"what_it_does":"flake8-django is a linter plugin that integrates Django-specific style checks into the flake8 framework. It enforces a set of rules designed to catch common Django anti-patterns and style violations\u2014for example, flagging null=True on string fields, discouraging locals() in render contexts, and ensuring models define __str__ methods. The plugin works by analyzing your Django code's abstract syntax tree using astroid, then reporting violations as flake8 errors.\n\nYou install it alongside flake8, then run flake8 normally; it automatically applies its Django rules to your codebase. Seven rules are enabled by default (DJ01, DJ03, DJ06, DJ07, DJ08, DJ12, DJ13), and two optional rules (DJ10, DJ11) can be enabled via flake8 configuration. It's intended for teams enforcing Django style consistency across a project.","worth_installing":"Yes, with conditions. Install if you maintain a Django project and want automated enforcement of Django-specific style rules integrated into flake8. The plugin is stable and has no known vulnerabilities, but maintenance is dormant; verify that its rules remain compatible with your Django version before adopting. The copyleft GPL-3.0-or-later license requires compliance if you redistribute or modify the plugin itself, but using it as a development tool typically poses no constraint."},"id":"flake8-django","links":{"html":"https://skillfed.io/packages/flake8-django","md":"https://skillfed.io/packages/flake8-django.md","pypi":"https://pypi.org/project/flake8-django/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-07-31","license_spdx":null,"license_treatment":"copyleft","name":"flake8-django","python_support":"supports_current","summary":"Plugin to catch bad style specific to Django Projects."},"popularity":{"monthly_downloads":87636,"position":13779,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4"}
