Skip to content

Commit

Permalink
FIX: rename Ruff rule TCH to TC (#466)
Browse files Browse the repository at this point in the history
* ENH: update template hook for nbQA
  • Loading branch information
redeboer authored Dec 3, 2024
1 parent 4463ebb commit 34ed967
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 34ed967

Please sign in to comment.