← 输入框|github.com|刷新
Skip to content

fix tox -e py37 in CONTRIBUTING.md - #3782

Closed
HyperionBurn wants to merge 1 commit into
pre-commit:mainfrom
HyperionBurn:docs/contributing-tox-py
Closed

HyperionBurn wants to merge 1 commit into
pre-commit:mainfrom
HyperionBurn:docs/contributing-tox-py

Conversation

@HyperionBurn

Copy link
Copy Markdown

CONTRIBUTING.md told contributors to run the full test suite with tox -e py37, but that environment can no longer be built: setup.cfg declares python_requires = >=3.11, so Python 3.7 cannot install pre-commit at all.

The environment that actually runs the suite is py, from the envlist in tox.ini:

[tox]
envlist = py,pypy3,pre-commit

This changes only that one command; the surrounding advice is unchanged.

Verified against main at 20b1e7c:

  • setup.cfg -> python_requires = >=3.11
  • tox.ini -> envlist = py,pypy3,pre-commit
  • CONTRIBUTING.md had exactly one occurrence of tox -e py37

The related tox --devenv venv instruction above it is still accurate, so I left it alone.

pre-commit requires Python 3.11 or later (setup.cfg sets
python_requires = >=3.11), so a Python 3.7 tox environment can no
longer be built. The envlist in tox.ini is `py, pypy3, pre-commit`,
so `tox -e py` is the environment that runs the full test suite.
@asottile asottile closed this Oct 19, 2026
@pre-commit pre-commit locked as spam and limited conversation to collaborators Oct 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants