Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: rename Ruff rule TCH to TC #466

Merged
merged 6 commits into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/compwa_policy/check_dev_files/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,12 +371,13 @@ def __update_per_file_ignores(
"PLW0603", # global-statement
"S101", # `assert` detected
"T20", # print found
"TCH00", # type-checking block
"TC00", # type-checking block
*___get_existing_nbqa_ignores(pyproject),
},
banned_ignores={
"F821", # identify variables that are not defined
"ISC003", # explicit-string-concatenation
"TCH00", # https://astral.sh/blog/ruff-v0.8.0#new-error-codes-for-flake8-type-checking-rules
},
)
docs_dir = "docs"
Expand Down Expand Up @@ -615,7 +616,7 @@ def __add_nbqa_isort_pre_commit(precommit: ModifiablePrecommit) -> None:
excludes = nbqa_hook.get("exclude")
expected_repo = Repo(
repo="https://github.com/nbQA-dev/nbQA",
rev="1.9.0",
rev="1.9.1",
hooks=[Hook(id="nbqa-isort", args=read_preserved_yaml("[--float-to-top]"))],
)
if excludes is not None:
Expand Down