Skip to content

Commit 408ec74

Browse files
committed
Chore: Fix Ruff <-> black formatter oscillation
1 parent 8605a17 commit 408ec74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,14 +421,14 @@ tasks.format = [
421421
# Format code.
422422
# Configure Ruff not to auto-fix a few items that are useful in workbench mode.
423423
# e.g.: unused imports (F401), unused variables (F841), `print` statements (T201), commented-out code (ERA001)
424-
{ cmd = "ruff format" },
424+
{ cmd = "ruff format --exclude examples" },
425425
{ cmd = "ruff check --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 --ignore=ERA001" },
426426
# Format examples.
427427
# Use `black` for the files in `examples/*`, because it knows how to treat Jupyter files well.
428428
{ cmd = "black examples" },
429429
]
430430
tasks.lint = [
431-
{ cmd = "ruff format --check" },
431+
{ cmd = "ruff format --exclude examples --check" },
432432
{ cmd = "ruff check" },
433433
{ cmd = "validate-pyproject pyproject.toml" },
434434
{ cmd = "ty check" },

0 commit comments

Comments
 (0)