wemake-python-styleguide v0.15.1 Release Notes

  • ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixes dataclasses import, it was failing on python3.6
    • ๐Ÿ›  Fixes InconsistentComprehensionViolation work with async comprehensions
    • ๐Ÿ›  Fixes nested comprehensions support for InconsistentComprehensionViolation
    • ๐Ÿ›  Fixes multiple if support for InconsistentComprehensionViolation
    • ๐Ÿ›  Fixes that NestedTernaryViolation was not reported for a comprehension
    • ๐Ÿ›  Fixes that ConstantConditionViolation was not reported for a comprehension
    • ๐Ÿ›  Fixes that ConstantConditionViolation was triggering for while x := True:
    • ๐Ÿ›  Fixes that UselessElseViolation was not reported for for, while, and try keywords
    • ๐Ÿ›  Fixes false positive InfiniteWhileLoopViolation for try #1857
    • ๐Ÿ›  Fixes that InfiniteWhileLoopViolation was not triggered on 1 or other truthy nodes

    Misc

    • ๐Ÿ”จ Refactors how tokenize tests are executed, now we have an option to compile fixture code to make sure it is syntactically valid.