Skip to content

Releases: snok/flake8-type-checking

v2.3.1

08 Mar 18:08
Compare
Choose a tag to compare

What's Changed

This release disables the plugin for stubs (*.pyi) files. Considered a bugfix rather than a breaking change, since the rules of the plugin don't apply there.

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

20 Nov 20:30
Compare
Choose a tag to compare

New features

  • feat: Support use of TYPE_CHECKING with simple boolean logic by @steverice in #142

Maintenance

New Contributors

Full Changelog: v2.2.0...v2.3.0

v2.2.0

16 Oct 11:06
Compare
Choose a tag to compare

New features

  • feat: Add strict setting to opt-into v1 behavior by @sondrelg in #138

Bugfixes

Maintenance

  • chore: Update Poetry version to 1.2.0 by @sondrelg in #132
  • chore: remove upper bound from Python version specifier by @sisp in #134
  • docs: Expand and correct examples by @sondrelg in #135

New Contributors

  • @sisp made their first contribution in #134

Full Changelog: v2.1.3...v2.2.0

v2.1.3

01 Sep 21:02
Compare
Choose a tag to compare

Fixes

  • Adds missing attrs aliases (#133).

v2.1.2

04 Aug 21:23
Compare
Choose a tag to compare

Fixes

  • No longer flags TC001 (Move import into a type checking block) errors when imports are actually just completely unused. This error is already covered by F401.

v2.1.1

04 Aug 18:41
Compare
Choose a tag to compare

Fixes

  • Correct TC101 (... does not need to be a string literal) logic so it only flags string literals (#122 by @shiftinv)
  • Fix a TC004 issue (Move import ... out of type-checking block) where we weren't handling all imports (#123 by @shiftinv)
  • Fix TC002 (Move import ... into type checking block) false positives (#124)

v2.1.0

28 Jul 21:00
Compare
Choose a tag to compare

Adds a new error type, TC006, with error message Annotation in typing.cast() should be a string literal (#114, #118). Thanks @ngnpope 👏

v2.0.7

27 Jul 08:31
Compare
Choose a tag to compare

Replaces the dependency aspy.refactor-imports with the updated and renamed classify-imports (#117). Thanks @ngnpope 👏

v2.0.6

14 Jul 15:03
44c04e2
Compare
Choose a tag to compare

Fixes

  • Remove packaging dependency. Implement tuple comparison to check flake8 semver major version.
  • Add flake8 call to test matrix, so we don't accidentally break the plugin in the same way again.

v2.0.5

14 Jul 13:23
4b45707
Compare
Choose a tag to compare

Fixes

  • Fix configuration issue preventing plugin from running flake8 v3
  • Fix false positive TC004 errors in new pipe-style (BinOr) annotations