Commits
Click on a commit to change the comparison rangeAdds initial implementation for TCH008
The implementation for TCH007 is incomplete and also requires some
changes to TCH004 in order to avoid conflicts between TCH004 and TCH007 Fixes mkdocs and clippy complaints Fixes runtime forward reference binding lookup Simulates proper runtime name lookups for more accurate results Adds missing test case back and fixes range overlap check
Also fixes lexicographical lookup not taking shadowed bindings into
account. Refactors class name book keeping code Removes unnecessary borrow Fixes some logical errors and simplifies class name lookups Guards against TC010/TCH008 overlap Adds implementation and tests for TCH007 Fixes TCH004/TCH007 overlap Merge branch 'main' into feat/tch007-tch008 Merge branch 'main' into feat/tch007-tch008 Simplifies `quote_type_expression` Fixes errors and only marks fix as unsafe when there are comments Removes unnecessary `return` statement Merge branch 'main' into feat/tch007-tch008 Fixes new semantic flag values `quote_type_annotation` is once again no longer guaranteed to work Addressed some of the feedback from the code review Avoids changing the behavior of `TCH004` for now.
Ensures there's no circularity issues between `TCH007` and `TCH008` by
always running test cases with both rules enabled. Apply suggestions from code review
Co-authored-by: Carl Meyer <carl@oddbird.net> Fixes snapshot and applies a couple of other suggestions Remove dummy file that got committed by accident Improves documentation and naming of type alias related methods/flags Merge branch 'main' into feat/tch007-tch008 Adjusts type alias naming to be more distinctive Merge branch 'main' into feat/tch007-tch008 Fixes error in `ruff.schema.json` introduced by merge Extends docstring for `simulate_runtime_load` Fixes cross references in docstring Address some of the code review comments