Skip to content

Commit adff8cb

Browse files
committed
Ruff config: disable ANN001 for tests and scripts, no need for type hints there
1 parent 7de4ad9 commit adff8cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,15 @@ strict = true
361361
[tool.ruff.lint.per-file-ignores]
362362
"tests/**.py" = [
363363
# No need for package, module, class, function, init etc docstrings in tests
364-
'D100', 'D101', 'D102', 'D103', 'D104', 'D105', 'D107'
364+
'D100', 'D101', 'D102', 'D103', 'D104', 'D105', 'D107',
365+
# No need for type hinting in tests
366+
'ANN001'
365367
]
366368
"scripts/**.py" = [
367369
# No need for package, module, class, function, init etc docstrings in scripts
368-
'D100', 'D101', 'D102', 'D103', 'D104', 'D105', 'D107', 'D205'
370+
'D100', 'D101', 'D102', 'D103', 'D104', 'D105', 'D107', 'D205',
371+
# No need for type hinting in scripts
372+
'ANN001'
369373
]
370374
"tests/spark_namespace/**.py" = [
371375
# we need * imports for Spark

0 commit comments

Comments
 (0)