Skip to content

Commit 61867e4

Browse files
committed
Adding ruff ignores
1 parent 3fc9509 commit 61867e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,16 @@ ignore = [
8888
"EM101", # Exception must not use a string literal
8989
"RET505", # Unnecessary `elif` after `return` statement
9090
"SIM108", # Use ternary operator
91+
"PLC0415", # `import` should be at the top-level of a file
9192
]
9293

9394
[tool.ruff.lint.per-file-ignores]
9495
"tests/test_*.py" = [
9596
"ARG001", # Pytest fixtures are passed as arguments
9697
]
98+
".spin/cmds.py" = [
99+
"PT028", # This is not a test file but a command named test
100+
]
97101

98102
[tool.ruff.format]
99103
docstring-code-format = true

0 commit comments

Comments
 (0)