Skip to content

Version 0.8.0

Compare
Choose a tag to compare
@sobolevn sobolevn released this 03 Mar 16:32
· 2117 commits to master since this release
b3c1bfa

Features

  • Updates flake8 to 3.7+
  • Adds flake8-annotations-complexity as a dependency, forbids complex annotations
  • Forbids to use redundant +, ~, not, and - operators before numbers
  • Forbids to use complex default values
  • Forbids to use anything rather than names in for loop vars definitions
  • Forbids to use anything rather than names in with block vars definitions
  • Forbids to use anything rather than names in comprehension vars definitions
  • Forbids to use direct magic attributes access
  • Forbids to use negated conditions
  • Forbids to use too many # pragma: no cover comments
  • Forbids to use nested try blocks

Bugfixes

  • Fixes problems with empty lines after magic comments, see #492
  • Fixes error message for del keyword: it is now just 'del' not 'delete'

Misc

  • Removes flake8-per-file-ignores plugin, since flake8 now handles it
  • Removes flake8-type-annotations plugin, since flake8 now handles it
  • Improves docs for WrongKeywordViolation
  • Improves docs for EmptyLineAfterCodingViolation
  • Improves docs for ProtectedAttributeViolation
  • Adds docs about .pyi files