Features
- Supports new
flake8
version4.x
- Now
InconsistentYieldViolation
andInconsistentReturnViolation
are raised
whenyield
orreturn
is used withNone
where plain version should be used #2151 - Dot
'.'
and comma','
do not count against string literal overuse limit anymore #2209 - Added
RedundantEnumerateViolation
#1825 - Adds
RaiseFromItselfViolation
#2133 - Adds
ConsecutiveSlicesViolation
#2064 - Adds
KwargsUnpackingInClassDefinitionViolation
#1754 DirectMagicAttributeAccessViolation
now only flags instances for which
a known alternative exists #2268- Forbids getting collection element of list by unpacking #1824
- Now
WPS227
forbids returning tuples that are too long #1731
Bugfixes
- Fixes that
InconsistentComprehensionViolation
was ignoring
misalignedin
expressions #2075 - Fixes some common magic methods not being recognized as such #2281
Misc
- Removes all
Raises:
from docstrings, they were unused - Improve Docs: Fixed all typos and grammatical errors in
CHANGELOG.md
- Updated documentation with the recommended
isort
config. #1934 - Updates
typing_extensions
to4.x