GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — Docs: move sphinx-lint to pre-commit by hugovk · Pull Request #105750 · python/cpython Conversation
|
|
Thanks! I should also mention I based the Makefile stuff from the peps repo: https://github.com/python/peps/blob/1b0666eafa3d6ca2c5804f7ed41e49ebb74ca831/Makefile#L62-L66 (Which may have come from similar things in https://github.com/python-pillow/Pillow/blob/main/Makefile) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| $(SPHINXLINT) -i tools -i $(VENVDIR) --enable default-role | ||
| $(SPHINXLINT) --enable default-role ../Misc/NEWS.d/next/ | ||
| check: venv | ||
| $(VENVDIR)/bin/python3 -m pre_commit --version > /dev/null || $(VENVDIR)/bin/python3 -m pip install pre-commit |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Any reason why this is installed like this instead of adding it to requirements.txt?
Everything else LGTM.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good question, I think to prefer running pre-commit when committing to Git, and avoid installing it unless we really need to - usually we don't need it installed with all the other venv things.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @hugovk
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Since we also moved the 3.12 branch to using pre-commit and this is just a background infra change, I marked this for backport there too. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
(cherry picked from commit bc07c8f) Co-authored-by: Hugo van Kemenade <[email protected]>
|
GH-105894 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Docs: move sphinx-lint to pre-commit (GH-105750) (cherry picked from commit bc07c8f) Co-authored-by: Hugo van Kemenade <[email protected]>
|
GH-108276 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.