Skip to content

Commit a4eb63c

Browse files
committed
Ignore ruff check for bare 'assert'
1 parent 0eecf3b commit a4eb63c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,12 @@ line-length = 79
9595
strict = true
9696

9797
[tool.ruff]
98-
select = ["ALL"]
98+
select = ["ALL"]
99+
100+
ignore = [
101+
# Allow 'assert' in tests as it is the standard for pytest.
102+
# Also, allow 'assert' in other code as it is the standard for Python type hint
103+
# narrowing - see
104+
# https://mypy.readthedocs.io/en/stable/type_narrowing.html#type-narrowing-expressions.
105+
"S101",
106+
]

0 commit comments

Comments
 (0)