FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix `tox -e py37` in CONTRIBUTING.md by HyperionBurn · Pull Request #3782 · pre-commit/pre-commit · GitHub

Repository navigation

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

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 closed this Oct 19, 2026
pre-commit locked as spam and limited conversation to collaborators Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL