diff --git a/README.md b/README.md index bbaf3c3820..a23602d381 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ developer of [Zulip](https://github.com/zulip/zulip): 1. [flake8-commas (COM)](#flake8-commas-com) 1. [flake8-no-pep420 (INP)](#flake8-no-pep420-inp) 1. [flake8-executable (EXE)](#flake8-executable-exe) - 1. [flake8-type-checking (TYC)](#flake8-type-checking-tyc) + 1. [flake8-type-checking (TCH)](#flake8-type-checking-tch) 1. [tryceratops (TRY)](#tryceratops-try) 1. [flake8-use-pathlib (PTH)](#flake8-use-pathlib-pth) 1. [Ruff-specific rules (RUF)](#ruff-specific-rules-ruf) @@ -1197,17 +1197,17 @@ For more, see [flake8-executable](https://pypi.org/project/flake8-executable/) o | EXE004 | shebang-whitespace | Avoid whitespace before shebang | 🛠 | | EXE005 | shebang-newline | Shebang should be at the beginning of the file | | -### flake8-type-checking (TYC) +### flake8-type-checking (TCH) For more, see [flake8-type-checking](https://pypi.org/project/flake8-type-checking/) on PyPI. | Code | Name | Message | Fix | | ---- | ---- | ------- | --- | -| TYC001 | typing-only-first-party-import | Move application import `{}` into a type-checking block | | -| TYC002 | typing-only-third-party-import | Move third-party import `{}` into a type-checking block | | -| TYC003 | typing-only-standard-library-import | Move standard library import `{}` into a type-checking block | | -| TYC004 | runtime-import-in-type-checking-block | Move import `{}` out of type-checking block. Import is used for more than type hinting. | | -| TYC005 | empty-type-checking-block | Found empty type-checking block | | +| TCH001 | typing-only-first-party-import | Move application import `{}` into a type-checking block | | +| TCH002 | typing-only-third-party-import | Move third-party import `{}` into a type-checking block | | +| TCH003 | typing-only-standard-library-import | Move standard library import `{}` into a type-checking block | | +| TCH004 | runtime-import-in-type-checking-block | Move import `{}` out of type-checking block. Import is used for more than type hinting. | | +| TCH005 | empty-type-checking-block | Found empty type-checking block | | ### tryceratops (TRY) diff --git a/resources/test/fixtures/flake8_type_checking/TYC001.py b/resources/test/fixtures/flake8_type_checking/TCH001.py similarity index 82% rename from resources/test/fixtures/flake8_type_checking/TYC001.py rename to resources/test/fixtures/flake8_type_checking/TCH001.py index 455105c2bc..c85cf3874b 100644 --- a/resources/test/fixtures/flake8_type_checking/TYC001.py +++ b/resources/test/fixtures/flake8_type_checking/TCH001.py @@ -1,6 +1,6 @@ """Tests to determine first-party import classification. -For typing-only import detection tests, see `TYC002.py`. +For typing-only import detection tests, see `TCH002.py`. """ diff --git a/resources/test/fixtures/flake8_type_checking/TYC002.py b/resources/test/fixtures/flake8_type_checking/TCH002.py similarity index 83% rename from resources/test/fixtures/flake8_type_checking/TYC002.py rename to resources/test/fixtures/flake8_type_checking/TCH002.py index 366fc7229d..e5fe643ba0 100644 --- a/resources/test/fixtures/flake8_type_checking/TYC002.py +++ b/resources/test/fixtures/flake8_type_checking/TCH002.py @@ -2,43 +2,43 @@ def f(): - import pandas as pd # TYC002 + import pandas as pd # TCH002 x: pd.DataFrame def f(): - from pandas import DataFrame # TYC002 + from pandas import DataFrame # TCH002 x: DataFrame def f(): - from pandas import DataFrame as df # TYC002 + from pandas import DataFrame as df # TCH002 x: df def f(): - import pandas as pd # TYC002 + import pandas as pd # TCH002 x: pd.DataFrame = 1 def f(): - from pandas import DataFrame # TYC002 + from pandas import DataFrame # TCH002 x: DataFrame = 2 def f(): - from pandas import DataFrame as df # TYC002 + from pandas import DataFrame as df # TCH002 x: df = 3 def f(): - import pandas as pd # TYC002 + import pandas as pd # TCH002 x: "pd.DataFrame" = 1 @@ -46,7 +46,7 @@ def f(): def f(): import pandas as pd - x = dict["pd.DataFrame", "pd.DataFrame"] # TYC002 + x = dict["pd.DataFrame", "pd.DataFrame"] # TCH002 def f(): diff --git a/resources/test/fixtures/flake8_type_checking/TYC003.py b/resources/test/fixtures/flake8_type_checking/TCH003.py similarity index 71% rename from resources/test/fixtures/flake8_type_checking/TYC003.py rename to resources/test/fixtures/flake8_type_checking/TCH003.py index 4bcd58d8ee..663af2335a 100644 --- a/resources/test/fixtures/flake8_type_checking/TYC003.py +++ b/resources/test/fixtures/flake8_type_checking/TCH003.py @@ -1,6 +1,6 @@ """Tests to determine standard library import classification. -For typing-only import detection tests, see `TYC002.py`. +For typing-only import detection tests, see `TCH002.py`. """ diff --git a/resources/test/fixtures/flake8_type_checking/TYC004_1.py b/resources/test/fixtures/flake8_type_checking/TCH004_1.py similarity index 100% rename from resources/test/fixtures/flake8_type_checking/TYC004_1.py rename to resources/test/fixtures/flake8_type_checking/TCH004_1.py diff --git a/resources/test/fixtures/flake8_type_checking/TYC004_2.py b/resources/test/fixtures/flake8_type_checking/TCH004_2.py similarity index 100% rename from resources/test/fixtures/flake8_type_checking/TYC004_2.py rename to resources/test/fixtures/flake8_type_checking/TCH004_2.py diff --git a/resources/test/fixtures/flake8_type_checking/TYC004_3.py b/resources/test/fixtures/flake8_type_checking/TCH004_3.py similarity index 100% rename from resources/test/fixtures/flake8_type_checking/TYC004_3.py rename to resources/test/fixtures/flake8_type_checking/TCH004_3.py diff --git a/resources/test/fixtures/flake8_type_checking/TYC004_4.py b/resources/test/fixtures/flake8_type_checking/TCH004_4.py similarity index 100% rename from resources/test/fixtures/flake8_type_checking/TYC004_4.py rename to resources/test/fixtures/flake8_type_checking/TCH004_4.py diff --git a/resources/test/fixtures/flake8_type_checking/TYC004_5.py b/resources/test/fixtures/flake8_type_checking/TCH004_5.py similarity index 100% rename from resources/test/fixtures/flake8_type_checking/TYC004_5.py rename to resources/test/fixtures/flake8_type_checking/TCH004_5.py diff --git a/resources/test/fixtures/flake8_type_checking/TYC004_6.py b/resources/test/fixtures/flake8_type_checking/TCH004_6.py similarity index 100% rename from resources/test/fixtures/flake8_type_checking/TYC004_6.py rename to resources/test/fixtures/flake8_type_checking/TCH004_6.py diff --git a/resources/test/fixtures/flake8_type_checking/TYC004_7.py b/resources/test/fixtures/flake8_type_checking/TCH004_7.py similarity index 100% rename from resources/test/fixtures/flake8_type_checking/TYC004_7.py rename to resources/test/fixtures/flake8_type_checking/TCH004_7.py diff --git a/resources/test/fixtures/flake8_type_checking/TYC004_8.py b/resources/test/fixtures/flake8_type_checking/TCH004_8.py similarity index 100% rename from resources/test/fixtures/flake8_type_checking/TYC004_8.py rename to resources/test/fixtures/flake8_type_checking/TCH004_8.py diff --git a/resources/test/fixtures/flake8_type_checking/TYC005.py b/resources/test/fixtures/flake8_type_checking/TCH005.py similarity index 93% rename from resources/test/fixtures/flake8_type_checking/TYC005.py rename to resources/test/fixtures/flake8_type_checking/TCH005.py index c5e80a69ac..46ca5e4691 100644 --- a/resources/test/fixtures/flake8_type_checking/TYC005.py +++ b/resources/test/fixtures/flake8_type_checking/TCH005.py @@ -1,7 +1,7 @@ from typing import TYPE_CHECKING, List if TYPE_CHECKING: - pass # TYC005 + pass # TCH005 def example(): diff --git a/ruff.schema.json b/ruff.schema.json index 2887d6ea1f..c06c3b735e 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -1760,6 +1760,14 @@ "T20", "T201", "T203", + "TCH", + "TCH0", + "TCH00", + "TCH001", + "TCH002", + "TCH003", + "TCH004", + "TCH005", "TID", "TID2", "TID25", @@ -1777,14 +1785,6 @@ "TRY30", "TRY300", "TRY301", - "TYC", - "TYC0", - "TYC00", - "TYC001", - "TYC002", - "TYC003", - "TYC004", - "TYC005", "UP", "UP0", "UP00", diff --git a/src/flake8_to_ruff/plugin.rs b/src/flake8_to_ruff/plugin.rs index 77542d4fd0..ea338e34c9 100644 --- a/src/flake8_to_ruff/plugin.rs +++ b/src/flake8_to_ruff/plugin.rs @@ -160,7 +160,7 @@ impl Plugin { Plugin::Flake8Return => RuleCodePrefix::RET.into(), Plugin::Flake8Simplify => RuleCodePrefix::SIM.into(), Plugin::Flake8TidyImports => RuleCodePrefix::TID.into(), - Plugin::Flake8TypeChecking => RuleCodePrefix::TYC.into(), + Plugin::Flake8TypeChecking => RuleCodePrefix::TCH.into(), Plugin::Flake8UnusedArguments => RuleCodePrefix::ARG.into(), Plugin::Flake8UsePathlib => RuleCodePrefix::PTH.into(), Plugin::McCabe => RuleCodePrefix::C9.into(), diff --git a/src/registry.rs b/src/registry.rs index b9322bb8d0..c72b6e7b63 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -429,11 +429,11 @@ ruff_macros::define_rule_mapping!( EXE004 => rules::flake8_executable::rules::ShebangWhitespace, EXE005 => rules::flake8_executable::rules::ShebangNewline, // flake8-type-checking - TYC001 => rules::flake8_type_checking::rules::TypingOnlyFirstPartyImport, - TYC002 => rules::flake8_type_checking::rules::TypingOnlyThirdPartyImport, - TYC003 => rules::flake8_type_checking::rules::TypingOnlyStandardLibraryImport, - TYC004 => rules::flake8_type_checking::rules::RuntimeImportInTypeCheckingBlock, - TYC005 => rules::flake8_type_checking::rules::EmptyTypeCheckingBlock, + TCH001 => rules::flake8_type_checking::rules::TypingOnlyFirstPartyImport, + TCH002 => rules::flake8_type_checking::rules::TypingOnlyThirdPartyImport, + TCH003 => rules::flake8_type_checking::rules::TypingOnlyStandardLibraryImport, + TCH004 => rules::flake8_type_checking::rules::RuntimeImportInTypeCheckingBlock, + TCH005 => rules::flake8_type_checking::rules::EmptyTypeCheckingBlock, // tryceratops TRY004 => rules::tryceratops::rules::PreferTypeError, TRY200 => rules::tryceratops::rules::ReraiseNoCause, @@ -584,7 +584,7 @@ pub enum Linter { #[prefix = "EXE"] Flake8Executable, /// [flake8-type-checking](https://pypi.org/project/flake8-type-checking/) - #[prefix = "TYC"] + #[prefix = "TCH"] Flake8TypeChecking, /// [tryceratops](https://pypi.org/project/tryceratops/1.1.0/) #[prefix = "TRY"] diff --git a/src/rule_redirects.rs b/src/rule_redirects.rs index d6b4205de5..73981e2f90 100644 --- a/src/rule_redirects.rs +++ b/src/rule_redirects.rs @@ -82,7 +82,7 @@ static REDIRECTS: Lazy> = Lazy::new(|| { ("PDV90", "PD90"), ("PDV901", "PD901"), // TODO(charlie): Remove by 2023-04-01. - ("TYP", "TYC"), - ("TYP001", "TYC001"), + ("TYP", "TCH"), + ("TYP001", "TCH001"), ]) }); diff --git a/src/rules/flake8_type_checking/mod.rs b/src/rules/flake8_type_checking/mod.rs index 427813b168..3c4c1f5e1f 100644 --- a/src/rules/flake8_type_checking/mod.rs +++ b/src/rules/flake8_type_checking/mod.rs @@ -14,18 +14,18 @@ mod tests { use crate::registry::Rule; use crate::settings; - #[test_case(Rule::TypingOnlyFirstPartyImport, Path::new("TYC001.py"); "TYC001")] - #[test_case(Rule::TypingOnlyThirdPartyImport, Path::new("TYC002.py"); "TYC002")] - #[test_case(Rule::TypingOnlyStandardLibraryImport, Path::new("TYC003.py"); "TYC003")] - #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TYC004_1.py"); "TYC004_1")] - #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TYC004_2.py"); "TYC004_2")] - #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TYC004_3.py"); "TYC004_3")] - #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TYC004_4.py"); "TYC004_4")] - #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TYC004_5.py"); "TYC004_5")] - #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TYC004_6.py"); "TYC004_6")] - #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TYC004_7.py"); "TYC004_7")] - #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TYC004_8.py"); "TYC004_8")] - #[test_case(Rule::EmptyTypeCheckingBlock, Path::new("TYC005.py"); "TYC005")] + #[test_case(Rule::TypingOnlyFirstPartyImport, Path::new("TCH001.py"); "TCH001")] + #[test_case(Rule::TypingOnlyThirdPartyImport, Path::new("TCH002.py"); "TCH002")] + #[test_case(Rule::TypingOnlyStandardLibraryImport, Path::new("TCH003.py"); "TCH003")] + #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TCH004_1.py"); "TCH004_1")] + #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TCH004_2.py"); "TCH004_2")] + #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TCH004_3.py"); "TCH004_3")] + #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TCH004_4.py"); "TCH004_4")] + #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TCH004_5.py"); "TCH004_5")] + #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TCH004_6.py"); "TCH004_6")] + #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TCH004_7.py"); "TCH004_7")] + #[test_case(Rule::RuntimeImportInTypeCheckingBlock, Path::new("TCH004_8.py"); "TCH004_8")] + #[test_case(Rule::EmptyTypeCheckingBlock, Path::new("TCH005.py"); "TCH005")] fn rules(rule_code: Rule, path: &Path) -> Result<()> { let snapshot = format!("{}_{}", rule_code.as_ref(), path.to_string_lossy()); let diagnostics = test_path( diff --git a/src/rules/flake8_type_checking/rules/empty_type_checking_block.rs b/src/rules/flake8_type_checking/rules/empty_type_checking_block.rs index a854b50f8a..ad29fb4340 100644 --- a/src/rules/flake8_type_checking/rules/empty_type_checking_block.rs +++ b/src/rules/flake8_type_checking/rules/empty_type_checking_block.rs @@ -17,7 +17,7 @@ impl Violation for EmptyTypeCheckingBlock { } } -/// TYC005 +/// TCH005 pub fn empty_type_checking_block(checker: &mut Checker, test: &Expr, body: &[Stmt]) { if checker.resolve_call_path(test).map_or(false, |call_path| { call_path.as_slice() == ["typing", "TYPE_CHECKING"] diff --git a/src/rules/flake8_type_checking/rules/runtime_import_in_type_checking_block.rs b/src/rules/flake8_type_checking/rules/runtime_import_in_type_checking_block.rs index 867a808c94..552b4b2ec9 100644 --- a/src/rules/flake8_type_checking/rules/runtime_import_in_type_checking_block.rs +++ b/src/rules/flake8_type_checking/rules/runtime_import_in_type_checking_block.rs @@ -22,7 +22,7 @@ impl Violation for RuntimeImportInTypeCheckingBlock { } } -/// TYC004 +/// TCH004 pub fn runtime_import_in_type_checking_block( binding: &Binding, blocks: &[&Stmt], diff --git a/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs b/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs index 0a9c60e13d..6ae87c0fae 100644 --- a/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs +++ b/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs @@ -55,7 +55,7 @@ impl Violation for TypingOnlyStandardLibraryImport { } } -/// TYC001 +/// TCH001 pub fn typing_only_runtime_import( binding: &Binding, blocks: &[&Stmt], diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TYC005.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TYC005.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_1.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_1.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_2.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_2.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_3.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_3.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_3.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_3.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_4.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_4.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_5.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_5.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_6.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_6.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_6.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_6.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_7.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_7.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_7.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_7.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_8.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_8.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TYC004_8.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_8.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TYC001.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TYC001.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TYC003.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TYC003.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap diff --git a/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TYC002.py.snap b/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap similarity index 100% rename from src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TYC002.py.snap rename to src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap