Skip to content

Commit bfce217

Browse files
committed
Add earlier Python version syntax check for __pip-runner__.py
1 parent d52011f commit bfce217

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,11 @@ max-branches = 28 # default is 12
272272
max-returns = 13 # default is 6
273273
max-statements = 134 # default is 50
274274

275+
[tool.ruff.per-file-target-version]
276+
# `__pip-runner__.py` should be Python 2.7 compatible but the
277+
# earliest version of Python ruff will check is 3.7
278+
"src/pip/__pip-runner__.py" = "py37"
279+
275280
######################################################################################
276281
# mypy
277282
#

0 commit comments

Comments
 (0)