Skip to content

Commit 63b235f

Browse files
committed
Update ruff to 0.5.0
1 parent 47ffcdd commit 63b235f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: black
2323

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.4.7
25+
rev: v0.5.0
2626
hooks:
2727
- id: ruff
2828
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ distlib = "https://bitbucket.org/pypa/distlib/raw/master/LICENSE.txt"
151151

152152
[tool.ruff]
153153
src = ["src"]
154-
target-version = "py38"
155154
line-length = 88
156155
extend-exclude = [
157156
"_vendor",

src/pip/_internal/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _onerror_ignore(*_args: Any) -> None:
149149

150150

151151
def _onerror_reraise(*_args: Any) -> None:
152-
raise
152+
raise # noqa: PLE0704 - Bare exception used to reraise existing exception
153153

154154

155155
def rmtree_errorhandler(

0 commit comments

Comments
 (0)