Skip to content

Commit dd7dae2

Browse files
committed
Add ANN lints to default ruff runs on non-tests
1 parent 2fca809 commit dd7dae2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,18 @@ filename = "pyproject.toml"
9999
filename = "src/workflows/__init__.py"
100100

101101
[tool.ruff.lint]
102-
select = ["E", "F", "W", "C4", "I"]
102+
select = ["E", "F", "W", "C4", "I", "ANN"]
103103
unfixable = ["F841"]
104104
# E501 line too long (handled by formatter)
105-
ignore = ["E501"]
105+
ignore = ["E501", "ANN204", "ANN401"]
106106

107107
[tool.ruff.lint.isort]
108108
known-first-party = ["dxtbx_*", "dxtbx"]
109109
required-imports = ["from __future__ import annotations"]
110110

111+
[tool.ruff.lint.per-file-ignores]
112+
"tests/**" = ["ANN"]
113+
111114
[tool.mypy]
112115
mypy_path = "src/"
113116

0 commit comments

Comments
 (0)