Skip to content

Commit 45ab05b

Browse files
authored
style: update linting configuration for ruff 0.9 (#319)
1 parent c1f03c6 commit 45ab05b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
- id: fix-byte-order-marker
1414
- id: mixed-line-ending
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: "v0.8.4"
16+
rev: "v0.9.1"
1717
hooks:
1818
# Run the linter
1919
- id: ruff

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ select = [ # Base linting rule selections.
241241
# The team have chosen to only use type-checking blocks when necessary to prevent circular imports.
242242
# As such, the only enabled type-checking checks are those that warn of an import that needs to be
243243
# removed from a type-checking block.
244-
"TCH004", # Remove imports from type-checking guard blocks if used at runtime
245-
"TCH005", # Delete empty type-checking blocks
244+
"TC004", # Remove imports from type-checking guard blocks if used at runtime
245+
"TC005", # Delete empty type-checking blocks
246246
"ARG", # Unused arguments
247247
"PTH", # Migrate to pathlib
248248
"FIX", # All TODOs, FIXMEs, etc. should be turned into issues instead.

0 commit comments

Comments
 (0)