- 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
DJ10
andDJ11
(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
DJ01
when the keyword argument value ofunique
,blank
ornull
keywords was not a simple value.
Bugfixes
- Fixed
DJ01
to consider exception when unique=True and null=True warning should not be raised. (@rocioar)
Improvements
- Added documentation for all the Rules. (@rocioar)
- Removed
DJ09
,DJ10
andDJ11
since it should not be mandatory to set averbose_name
orverbose_name_plural
. (@rocioar) - Removed
DJ05
check 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
DJ04
check since Django uses dashes on their examples (@rocioar) - Removed
DJ02
since 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
DJ08
check 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
DJ06
check for ModelForm, should not use exclude (@rocioar) - Added
DJ07
check forModelForm.META
, should not set fields to'__all__'
(@rocioar) - Added
DJ08
check for Model, should contain__str__
method (@rodolfolottin)
Bugfixes
- Fixed bug in setup.py missing some modules (@lithammer)
Bugfixes
- Fixed bug in
ModelFieldChecker
where node is not one of Name or Attribute (@rocioar)
Improvements
- Added checks
DJ04
andDJ05
for 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