diff --git a/src/virtualenv/__main__.py b/src/virtualenv/__main__.py index 2dc97c787..d0979a665 100644 --- a/src/virtualenv/__main__.py +++ b/src/virtualenv/__main__.py @@ -21,7 +21,7 @@ def run(args=None, options=None, env=None): print(f"subprocess call failed for {exception.cmd} with code {exception.code}") # noqa: T201 print(exception.out, file=sys.stdout, end="") # noqa: T201 print(exception.err, file=sys.stderr, end="") # noqa: T201 - raise SystemExit(exception.code) # noqa: TRY200, B904 + raise SystemExit(exception.code) # noqa: B904 class LogSession: diff --git a/src/virtualenv/create/debug.py b/src/virtualenv/create/debug.py index 3f54685a3..bc33367c8 100644 --- a/src/virtualenv/create/debug.py +++ b/src/virtualenv/create/debug.py @@ -95,7 +95,7 @@ def run(): # noqa: PLR0912 except (ValueError, TypeError) as exception: # pragma: no cover sys.stderr.write(repr(exception)) sys.stdout.write(repr(result)) # pragma: no cover - raise SystemExit(1) # noqa: TRY200, B904 # pragma: no cover + raise SystemExit(1) # noqa: B904 # pragma: no cover if __name__ == "__main__": diff --git a/src/virtualenv/create/describe.py b/src/virtualenv/create/describe.py index 726305547..1ee250cbc 100644 --- a/src/virtualenv/create/describe.py +++ b/src/virtualenv/create/describe.py @@ -7,7 +7,7 @@ from virtualenv.info import IS_WIN -class Describe(ABC): +class Describe: """Given a host interpreter tell us information about what the created interpreter might look like.""" suffix = ".exe" if IS_WIN else ""