Skip to content

Commit 9c2c334

Browse files
committed
fix: exclude test file from ruff formatting
Signed-off-by: lugi0 <lgiorgi@redhat.com>
1 parent 4bd8c31 commit 9c2c334

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ output-format = "grouped"
2626
lint.extend-select = ["I"]
2727

2828
[tool.ruff.format]
29-
exclude = [".git", ".venv", ".mypy_cache", ".tox", "__pycache__"]
29+
exclude = [".git", ".venv", ".mypy_cache", ".tox", "__pycache__", "unused_code_file_for_test.py"]
3030

3131
[tool.poetry]
3232
name = "python-utility-scripts"

tests/unused_code/unused_code_file_for_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ def foo(): # skip-unused-code
1313
pass
1414

1515

16-
def bar(x: Any, y: Any, z: Any) -> None: # skip-unused-code
16+
def bar(
17+
x: Any,
18+
y: Any,
19+
z: Any
20+
) -> None: # skip-unused-code
1721
pass
1822

1923

0 commit comments

Comments
 (0)