- Add exception handling for model field checking (@yalef)
- Add model checkers based on astroid nodes. Fixes violations missed when using subclasses (@yalef)
- Add support for flake8 6 (@JanMalte)
- Add compatibility with flake8 5.x (@Secrus)
- Drop support for Python versions below 3.7 (@Secrus)
- Add new check DJ13, ensures the receiver decorator is at the top of the decorators list. (@emorozov)
- Add compatibility with flake8 4.x (@terencehonles)
Bugfixes
- Removed UUIDField from DJ01 (@noamkush)
- Removed ImageField from DJ01 (Ferran Jovel)
Improvements
- Re-add
DJ10andDJ11(verbose_name and verbose_name_plural checks) as optional checks which are disabled by default (@rocioar) - Update DJ12 error message (@sondrelg)
Bugfixes
- Fixed bug on
DJ01when the keyword argument value ofunique,blankornullkeywords was not a simple value.
Bugfixes
- Fixed
DJ01to consider exception when unique=True and null=True warning should not be raised. (@rocioar)
Improvements
- Added documentation for all the Rules. (@rocioar)
- Removed
DJ09,DJ10andDJ11since it should not be mandatory to set averbose_nameorverbose_name_plural. (@rocioar) - Removed
DJ05check since we don't have a way to now when namespaces could be skipped (@rocioar) - Re-wrote Rules description for better understanding. (@rocioar)
Bugfixes
- Bug fix for RenderChecker (@GitRon)
Improvements
- Removed
DJ04check since Django uses dashes on their examples (@rocioar) - Removed
DJ02since it's not applicable anymore. Django has deprecated NullBooleanField. (@rocioar) - Added Model Content Order Check
DJ12. (@denizdogan) - Removed tox, use Github Actions for running tests and coverage (@rocioar)
- Dropped support for Python 3.4 (@rocioar)
Improvements
- Changed
DJ08check for__str__method to ignore abstract models (@denizdogan) - Added
DJ09- Model must defineclass Meta(@avallbona) - Added
DJ10- Class Meta from Model has to defineverbose_name(@avallbona) - Added
DJ11- Class Meta from Model has to defineverbose_name_plural(@avallbona) - Fixed some flake8 issues in test files (@avallbona)
- Refactored some tests (@avallbona)
Improvements
- Added
DJ06check for ModelForm, should not use exclude (@rocioar) - Added
DJ07check forModelForm.META, should not set fields to'__all__'(@rocioar) - Added
DJ08check for Model, should contain__str__method (@rodolfolottin)
Bugfixes
- Fixed bug in setup.py missing some modules (@lithammer)
Bugfixes
- Fixed bug in
ModelFieldCheckerwhere node is not one of Name or Attribute (@rocioar)
Improvements
- Added checks
DJ04andDJ05for urls (@rocioar) - Reorganized code, moved individual checkers to
checkers/,tests to tests/(@rocioar) - Added coverage checks (@rocioar)
- Moved from Travis to CircleCI (@rocioar)
Initial version