Skip to content

Commit 9930732

Browse files
Carreauianthomas23
authored andcommitted
Remove unused ignores lints. (ipython#1342)
1 parent 2695ae9 commit 9930732

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
@@ -255,18 +255,10 @@ ignore = [
255255
"PLR", # Design related pylint codes
256256
# Allow non-abstract empty methods in abstract base classes
257257
"B027",
258-
# Use of `assert` detected
259-
"S101",
260-
# Possible hardcoded password
261-
"S105", "S106",
262-
# `print` found
263-
"T201",
258+
"T201", # `print` found
264259
# Unnecessary `dict` call (rewrite as a literal)
265260
"C408",
266-
# Use `contextlib.suppress(ValueError)` instead of try-except-pass
267-
"SIM105",
268-
# `try`-`except`-`pass` detected
269-
"S110",
261+
"SIM105", # Use `contextlib.suppress(ValueError)` instead of try-except-pass
270262
# Mutable class attributes should be annotated with `typing.ClassVar`
271263
"RUF012",
272264
# Unused function argument:
@@ -275,21 +267,11 @@ ignore = [
275267
"ARG002",
276268
# `open()` should be replaced by `Path.open()`
277269
"PTH123",
278-
# use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
279-
"UP007",
270+
"UP007", # use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
280271
"UP031", # Use format specifiers instead of percent format
281272
"PT023", # Use `@pytest.mark.skip` over `@pytest.mark.skip()`
282273
"PT001", # autofixable: Use `@pytest.fixture` over `@pytest.fixture()`
283274
]
284-
unfixable = [
285-
# Don't touch print statements
286-
"T201",
287-
# Don't touch noqa lines
288-
"RUF100",
289-
# Don't touch imports
290-
"F401",
291-
"F403"
292-
]
293275

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

0 commit comments

Comments
 (0)