Skip to content

Commit 60233a1

Browse files
Apply ruff/bugbear new rules (#2718)
1 parent e28dfa7 commit 60233a1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/virtualenv/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def run(args=None, options=None, env=None):
2121
print(f"subprocess call failed for {exception.cmd} with code {exception.code}") # noqa: T201
2222
print(exception.out, file=sys.stdout, end="") # noqa: T201
2323
print(exception.err, file=sys.stderr, end="") # noqa: T201
24-
raise SystemExit(exception.code) # noqa: TRY200, B904
24+
raise SystemExit(exception.code) # noqa: B904
2525

2626

2727
class LogSession:

src/virtualenv/create/debug.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run(): # noqa: PLR0912
9595
except (ValueError, TypeError) as exception: # pragma: no cover
9696
sys.stderr.write(repr(exception))
9797
sys.stdout.write(repr(result)) # pragma: no cover
98-
raise SystemExit(1) # noqa: TRY200, B904 # pragma: no cover
98+
raise SystemExit(1) # noqa: B904 # pragma: no cover
9999

100100

101101
if __name__ == "__main__":

src/virtualenv/create/describe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from virtualenv.info import IS_WIN
88

99

10-
class Describe(ABC):
10+
class Describe:
1111
"""Given a host interpreter tell us information about what the created interpreter might look like."""
1212

1313
suffix = ".exe" if IS_WIN else ""

0 commit comments

Comments
 (0)