Skip to content

Commit 324f3ce

Browse files
authored
Merge pull request #13554 from notatallshaw/add-earlier-syntax-check-for-__pip-runner__.py
Add earlier Python version syntax check for `__pip-runner__.py`
2 parents 3a9c6ed + bfce217 commit 324f3ce

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
@@ -271,6 +271,11 @@ max-branches = 28 # default is 12
271271
max-returns = 13 # default is 6
272272
max-statements = 134 # default is 50
273273

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

0 commit comments

Comments
 (0)