github wemake-services/wemake-python-styleguide 0.16.0
Version 0.16.0

latest releases: 0.19.2, 0.19.1, 0.19.0...
2 years ago

Features

  • Supports new flake8 version 4.x
  • Now InconsistentYieldViolation and InconsistentReturnViolation are raised
    when yield or return is used with None
    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
    misaligned in 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 to 4.x

Don't miss a new wemake-python-styleguide release

NewReleases is sending notifications on new releases.