Skip to content

Commit fa578e7

Browse files
authored
Merge pull request pypa/distutils#293 from DimitriPapadopoulos/TRY400
Ignore TRY400 globally
2 parents 3d38185 + aba9eef commit fa578e7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

distutils/_msvccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _get_vc_env(plat_spec):
159159
stderr=subprocess.STDOUT,
160160
).decode('utf-16le', errors='replace')
161161
except subprocess.CalledProcessError as exc:
162-
log.error(exc.output) # noqa: RUF100, TRY400
162+
log.error(exc.output)
163163
raise DistutilsPlatformError(f"Error executing {exc.cmd}")
164164

165165
env = {

ruff.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ extend-select = [
1616
"YTT",
1717
]
1818
ignore = [
19-
# local
20-
"PERF203",
21-
"TRY003",
22-
23-
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
19+
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
2420
"W191",
2521
"E111",
2622
"E114",
@@ -39,6 +35,9 @@ ignore = [
3935
# local
4036
"B028",
4137
"B904",
38+
"PERF203",
39+
"TRY003",
40+
"TRY400",
4241
]
4342

4443
[format]

0 commit comments

Comments
 (0)