diff --git a/distutils/_msvccompiler.py b/distutils/_msvccompiler.py index 03653929..e7652218 100644 --- a/distutils/_msvccompiler.py +++ b/distutils/_msvccompiler.py @@ -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 = { diff --git a/ruff.toml b/ruff.toml index 664d894a..730732b1 100644 --- a/ruff.toml +++ b/ruff.toml @@ -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", @@ -39,6 +35,9 @@ ignore = [ # local "B028", "B904", + "PERF203", + "TRY003", + "TRY400", ] [format]