Skip to content

Commit b0673fa

Browse files
committed
🔧 move ruff ignore rules for the tests to the tests
1 parent 9c89224 commit b0673fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ version_tuple = {version_tuple!r}
142142
"__dlpack_device__",
143143
]
144144

145-
[tool.ruff.lint.per-file-ignores]
146-
"tests/*.py" = ["ANN201", "D1", "S101"]
147-
148145
[tool.ruff.lint.flake8-import-conventions]
149146
banned-from = ["array_api_typing"]
150147

‎tests/.ruff.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ extend = "../pyproject.toml"
22

33
[lint]
44
extend-ignore = [
5+
"ANN201", # https://docs.astral.sh/ruff/rules/missing-return-type-undocumented-public-function/
6+
"D1", # https://docs.astral.sh/ruff/rules/#pydocstyle-d
57
"INP001", # https://docs.astral.sh/ruff/rules/implicit-namespace-package/
8+
"S101", # https://docs.astral.sh/ruff/rules/assert/
69
]

0 commit comments

Comments
 (0)