Skip to content

Version 0.11.0 aka The New Violation Codes

Compare
Choose a tag to compare
@sobolevn sobolevn released this 18 Jul 14:53
· 2129 commits to master since this release
909aa85

We had a really big problem: all violations inside best_practices
was messed up together with no clear structure.

We had to fix it before it is too late.
So, we broke existing error codes.
And now we can promise not to do it ever again.

We also have this nice migration guide
for you to rename your violations with a script.

Features

  • Breaking: replaces Z error code to WPS code
  • Breaking: creates new violation group refactoring.py
  • Breaking: creates new violation group oop.py
  • Breaking: moving a lot of violations
    from best_practices to refactoring, oop, and consistency
  • Adds new wemake formatter (using it now by default)

Bugfixes

  • Fixes error message of OverusedStringViolation for empty strings
  • Now does not count string annotations as strings for OverusedStringViolation
  • Fixes InconsistentReturnVariableViolation was raised twice

Misc

  • Adds migration guide to 0.11
  • Improves legacy guide
  • Adds --show-source to the default recommended configuration
  • Adds better docs about auto-formatters
  • Adds autopep8 to CI to make sure that wps is compatible with it
  • Ensures that --diff mode works for flake8
  • Renames Incorrect to Wrong where possible
  • Renames IncorrectlyNestedTernaryViolation to NestedTernaryViolation
  • Renames IncorectLoopIterTypeViolation to WrongLoopIterTypeViolation