Version 0.4.0
Development was focused around better test coverage and providing a better API
for tests. We also now covering more cases and testing violation texts.
Features
- Breaking: removes duplicating module name rules, now we use the same rules
for both variables and modules - Breaking: removes
--min-module-name-lengthoptions - Breaking: renames
--min-variable-name-lengthinto--min-name-length - Dependencies: updates
flake8version to3.6 - Dependencies: removes
pycodestylepinned version
Bugfixes
- Multiple fixes to error text formats to be more readable
- Fixes
UNDERSCORED_NUMBER_PATTERNto match names likecome_22_me - Fixes
UpperCaseAttributeViolationnot being displayed in the docs - Fixes consistency checks being duplicated in the docs
- Fixes
UnderscoredNumberNameViolationshowing incorrect line number - Fixes
ProtectedAttributeViolationto respectsuper()andmcs - Fixes
ProtectedAttributeViolationto show correct text - Fixes
BadNumberSuffixViolationto show correct text - Fixes
TooManyBaseClassesViolationto show correct text - Fixes
TooManyElifsViolationto show correct text - Fixes
TooDeepNestingViolationto show correct text - Fixes
TooManyMethodsViolationto show correct text - Fixes
ReassigningVariableToItselfViolationto show correct text - Renames
UnderscoredNumberNameViolationtoUnderscoredNumberNameViolation
Misc
- Refactoring: removed duplicate logic inside
logics/filenames.py - Improves tests: now testing almost all violations inside
noqa.py - Improves tests: now testing violations text
- Improves tests: now all common patters live in related
conftest.py - Improves docs: now all configuration options are listed in the violations