We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51dc58b commit e166477Copy full SHA for e166477
distutils/extension.py
@@ -105,7 +105,7 @@ def __init__(
105
**kw, # To catch unknown keywords
106
):
107
if not isinstance(name, str):
108
- raise AssertionError("'name' must be a string")
+ raise AssertionError("'name' must be a string") # noqa: TRY004
109
if not (
110
isinstance(sources, list)
111
and all(isinstance(v, (str, os.PathLike)) for v in sources)
ruff.toml
@@ -8,9 +8,11 @@ extend-select = [
8
"ISC",
9
"RUF010",
10
"RUF100",
11
+ "TRY",
12
"UP",
13
]
14
ignore = [
15
+ "TRY003",
16
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
17
"W191",
18
"E111",
0 commit comments