Skip to content

Commit

Permalink
Ignore TRY400 globally
Browse files Browse the repository at this point in the history
While the suggestion might be valid in some cases, it doesn't fit all
use cases and ends up being a nuisance.
  • Loading branch information
DimitriPapadopoulos committed Sep 3, 2024
1 parent 971074d commit 4b3d9e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/_msvccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _get_vc_env(plat_spec):
stderr=subprocess.STDOUT,
).decode('utf-16le', errors='replace')
except subprocess.CalledProcessError as exc:
log.error(exc.output) # noqa: RUF100, TRY400
log.error(exc.output)
raise DistutilsPlatformError(f"Error executing {exc.cmd}")

env = {
Expand Down
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ ignore = [
# local
"B028",
"B904",
"TRY400",
]

[format]
Expand Down

0 comments on commit 4b3d9e6

Please sign in to comment.