Skip to content

Commit 9cdbf2b

Browse files
committed
Ruff FBT001: Spark API is out of our hands and may include boolean params
1 parent 948070a commit 9cdbf2b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ ban-relative-imports = "all"
359359
strict = true
360360

361361
[tool.ruff.lint.per-file-ignores]
362+
"duckdb/experimental/spark/**.py" = [
363+
# Ignore boolean positional args in the Spark API
364+
'FBT001'
365+
]
362366
"tests/**.py" = [
363367
# No need for package, module, class, function, init etc docstrings in tests
364368
'D100', 'D101', 'D102', 'D103', 'D104', 'D105', 'D107',
@@ -368,16 +372,16 @@ strict = true
368372
"tests/fast/spark/**.py" = [
369373
"E402"
370374
]
375+
"tests/spark_namespace/**.py" = [
376+
# we need * imports for Spark
377+
'F403'
378+
]
371379
"scripts/**.py" = [
372380
# No need for package, module, class, function, init etc docstrings in scripts
373381
'D100', 'D101', 'D102', 'D103', 'D104', 'D105', 'D107', 'D205',
374382
# No need for type hinting in scripts
375383
'ANN001', 'ANN201'
376384
]
377-
"tests/spark_namespace/**.py" = [
378-
# we need * imports for Spark
379-
'F403'
380-
]
381385

382386
[tool.ruff.format]
383387
docstring-code-format = true

0 commit comments

Comments
 (0)