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-length
options - Breaking: renames
--min-variable-name-length
into--min-name-length
- Dependencies: updates
flake8
version to3.6
- Dependencies: removes
pycodestyle
pinned version
Bugfixes
- Multiple fixes to error text formats to be more readable
- Fixes
UNDERSCORED_NUMBER_PATTERN
to match names likecome_22_me
- Fixes
UpperCaseAttributeViolation
not being displayed in the docs - Fixes consistency checks being duplicated in the docs
- Fixes
UnderscoredNumberNameViolation
showing incorrect line number - Fixes
ProtectedAttributeViolation
to respectsuper()
andmcs
- Fixes
ProtectedAttributeViolation
to show correct text - Fixes
BadNumberSuffixViolation
to show correct text - Fixes
TooManyBaseClassesViolation
to show correct text - Fixes
TooManyElifsViolation
to show correct text - Fixes
TooDeepNestingViolation
to show correct text - Fixes
TooManyMethodsViolation
to show correct text - Fixes
ReassigningVariableToItselfViolation
to show correct text - Renames
UnderscoredNumberNameViolation
toUnderscoredNumberNameViolation
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