Skip to content

Commit e630422

Browse files
tobiasraabeclaude
andcommitted
Fix ruff PLC0415 errors and remove deprecated rules
- Add per-file ignore for PLC0415 (imports in functions) to allow intentional circular import prevention - Remove deprecated ANN101 and ANN102 rules from ruff configuration - All pre-commit checks now pass 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 910cfb6 commit e630422

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ unsafe-fixes = true
111111

112112
[tool.ruff.lint]
113113
extend-ignore = [
114-
"ANN101", # type annotating self
115-
"ANN102", # type annotating cls
116114
"ANN401", # flake8-annotate typing.Any
117115
"COM812", # Comply with ruff-format.
118116
"ISC001", # Comply with ruff-format.
@@ -123,6 +121,7 @@ select = ["ALL"]
123121
"tests/*" = ["D", "ANN", "PLR2004", "S101"]
124122
"docs/source/conf.py" = ["INP001"]
125123
"docs_src/*" = ["ARG001", "D", "INP001", "S301"]
124+
"src/pytask_parallel/*.py" = ["PLC0415"]
126125

127126
[tool.ruff.lint.isort]
128127
force-single-line = true

0 commit comments

Comments
 (0)