Skip to content

Commit

Permalink
Merge pull request #293 from DimitriPapadopoulos/TRY400
Browse files Browse the repository at this point in the history
Ignore TRY400 globally
  • Loading branch information
jaraco authored Sep 5, 2024
2 parents 3d38185 + aba9eef commit fa578e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
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
9 changes: 4 additions & 5 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ extend-select = [
"YTT",
]
ignore = [
# local
"PERF203",
"TRY003",

# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
Expand All @@ -39,6 +35,9 @@ ignore = [
# local
"B028",
"B904",
"PERF203",
"TRY003",
"TRY400",
]

[format]
Expand Down

0 comments on commit fa578e7

Please sign in to comment.