Skip to content

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

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

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.
@HyperionBurn HyperionBurn changed the title fix \ ox -e py37\ in CONTRIBUTING.md fix tox -e py37 in CONTRIBUTING.md Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant