Skip to content

Pylint plugin for improving code analysis for when using Django

License

Notifications You must be signed in to change notification settings

jproffitt/pylint-django

 
 

Repository files navigation

pylint-django

Build Status Code Quality Coverage Status Latest Version Downloads

About

pylint-django is a Pylint plugin for improving code analysis for when analysing code using Django. It is also used by the Prospector tool.

Usage

Pylint

Ensure pylint-django is installed and on your path (pip install pylint-django), and then run pylint:

pylint --load-plugins pylint_django [..other options..]

Prospector

If you have prospector installed, then pylint-django will already be installed as a dependency, and will be activated automatically if Django is detected.

prospector [..other options..]

Features

  • Prevents warnings about Django-generated attributes such as Model.objects or Views.request.
  • Prevents warnings when using ForeignKey attributes ("Instance of ForeignKey has no member").
  • Validates Model.__unicode__ methods.
  • Meta informational classes on forms and models do not generate errors.

License

pylint-django is available under the GPLv2 license.

About

Pylint plugin for improving code analysis for when using Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%