Skip to content

Commit 9a776ab

Browse files
committed
Remove unused ignores lints.
1 parent 6aeb2b2 commit 9a776ab

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

pyproject.toml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,10 @@ ignore = [
257257
"PLR", # Design related pylint codes
258258
# Allow non-abstract empty methods in abstract base classes
259259
"B027",
260-
# Use of `assert` detected
261-
"S101",
262-
# Possible hardcoded password
263-
"S105", "S106",
264-
# `print` found
265-
"T201",
260+
"T201", # `print` found
266261
# Unnecessary `dict` call (rewrite as a literal)
267262
"C408",
268-
# Use `contextlib.suppress(ValueError)` instead of try-except-pass
269-
"SIM105",
270-
# `try`-`except`-`pass` detected
271-
"S110",
263+
"SIM105", # Use `contextlib.suppress(ValueError)` instead of try-except-pass
272264
# Mutable class attributes should be annotated with `typing.ClassVar`
273265
"RUF012",
274266
# Unused function argument:
@@ -279,21 +271,11 @@ ignore = [
279271
"G002",
280272
# `open()` should be replaced by `Path.open()`
281273
"PTH123",
282-
# use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
283-
"UP007",
274+
"UP007", # use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
284275
"UP031", # Use format specifiers instead of percent format
285276
"PT023", # Use `@pytest.mark.skip` over `@pytest.mark.skip()`
286277
"PT001", # autofixable: Use `@pytest.fixture` over `@pytest.fixture()`
287278
]
288-
unfixable = [
289-
# Don't touch print statements
290-
"T201",
291-
# Don't touch noqa lines
292-
"RUF100",
293-
# Don't touch imports
294-
"F401",
295-
"F403"
296-
]
297279

298280
[tool.ruff.lint.per-file-ignores]
299281
# B011 Do not call assert False since python -O removes these calls

0 commit comments

Comments
 (0)