Skip to content

Commit 077605d

Browse files
Patrick Roebuckclaude
andcommitted
chore: Add test-specific linting exceptions
Relax linting rules for test files to avoid breaking working tests: - I001 (import order) - F401 (unused imports) - F841 (unused variables) - PT011 (broad pytest.raises) - A004 (shadowing builtins) Production code (memdocs/) passes all ruff checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c43ee25 commit 077605d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ ignore = [
120120

121121
[tool.ruff.lint.per-file-ignores]
122122
"__init__.py" = ["F401"] # Unused imports
123-
"tests/**/*.py" = ["F841", "PT011"] # Unused variables and broad pytest.raises in tests
123+
"tests/**/*.py" = ["F841", "PT011", "I001", "F401", "A004"] # Test style: unused vars, broad raises, import order, unused imports, shadowing
124124

125125
[tool.mypy]
126126
python_version = "3.10"

0 commit comments

Comments
 (0)