Skip to content

Commit 0dd3e68

Browse files
Move no-asserts rule into test specific pyproject.toml
1 parent 6482546 commit 0dd3e68

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ ignore = [
5959
"FBT",
6060
"FIX002",
6161
"PLR0913", # I think it makes sense for functions here to have more arguments
62-
"S101", # Remove once asserts are converted to exceptions
6362
"TD002",
6463
"TD003",
6564
]

test/pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ src = ["../src"]
66

77
[tool.ruff.lint]
88
ignore = [
9-
"D", # Not adding docstrings to unit tests
10-
"ANN", # Not adding type hints to unit tests
11-
"ARG", # Mocks can be unused arguments
12-
"INP001", # __init__.py here seems unnecessary
9+
"D", # Not adding docstrings to unit tests
10+
"ANN", # Not adding type hints to unit tests
11+
"ARG", # Mocks can be unused arguments
12+
"INP001", # __init__.py here seems unnecessary
1313
"PT013", # Kinda don't care, maybe fix one day
1414
"PT019", # Regular "patch" seems fine
15+
"S101", # Keep asserts in unit tests
1516
]

0 commit comments

Comments
 (0)