Skip to content

Commit 4d42cb8

Browse files
authored
Remove unused ignores lints. (#1342)
1 parent d9998d2 commit 4d42cb8

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:
@@ -277,21 +269,11 @@ ignore = [
277269
"ARG002",
278270
# `open()` should be replaced by `Path.open()`
279271
"PTH123",
280-
# use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
281-
"UP007",
272+
"UP007", # use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
282273
"UP031", # Use format specifiers instead of percent format
283274
"PT023", # Use `@pytest.mark.skip` over `@pytest.mark.skip()`
284275
"PT001", # autofixable: Use `@pytest.fixture` over `@pytest.fixture()`
285276
]
286-
unfixable = [
287-
# Don't touch print statements
288-
"T201",
289-
# Don't touch noqa lines
290-
"RUF100",
291-
# Don't touch imports
292-
"F401",
293-
"F403"
294-
]
295277

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

0 commit comments

Comments
 (0)