Skip to content

Commit 340137f

Browse files
Ignore TRY400 globally
While the suggestion might be valid in some cases, it doesn't fit all use cases and ends up being a nuisance.
1 parent 91bc99a commit 340137f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ ignore = [
3939
# local
4040
"B028",
4141
"B904",
42+
"TRY400",
4243
]
4344

4445
[format]

0 commit comments

Comments
 (0)