mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Merge pull request #9333 from sbidoul/pre-commit-speed-sbi
Improve local pre-commit experience
This commit is contained in:
commit
41e4547542
5 changed files with 12 additions and 5 deletions
7
.pre-commit-config-slow.yaml
Normal file
7
.pre-commit-config-slow.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Slow pre-commit checks we don't want to run locally with each commit.
|
||||||
|
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/mgedmin/check-manifest
|
||||||
|
rev: '0.43'
|
||||||
|
hooks:
|
||||||
|
- id: check-manifest
|
|
@ -97,8 +97,3 @@ repos:
|
||||||
entry: NEWS fragment files must be named *.(process|removal|feature|bugfix|vendor|doc|trivial).rst
|
entry: NEWS fragment files must be named *.(process|removal|feature|bugfix|vendor|doc|trivial).rst
|
||||||
exclude: ^news/(.gitignore|.*\.(process|removal|feature|bugfix|vendor|doc|trivial).rst)
|
exclude: ^news/(.gitignore|.*\.(process|removal|feature|bugfix|vendor|doc|trivial).rst)
|
||||||
files: ^news/
|
files: ^news/
|
||||||
|
|
||||||
- repo: https://github.com/mgedmin/check-manifest
|
|
||||||
rev: '0.43'
|
|
||||||
hooks:
|
|
||||||
- id: check-manifest
|
|
||||||
|
|
|
@ -17,6 +17,7 @@ exclude .appveyor.yml
|
||||||
exclude .travis.yml
|
exclude .travis.yml
|
||||||
exclude .readthedocs.yml
|
exclude .readthedocs.yml
|
||||||
exclude .pre-commit-config.yaml
|
exclude .pre-commit-config.yaml
|
||||||
|
exclude .pre-commit-config-slow.yaml
|
||||||
exclude tox.ini
|
exclude tox.ini
|
||||||
exclude noxfile.py
|
exclude noxfile.py
|
||||||
|
|
||||||
|
|
|
@ -149,6 +149,9 @@ def lint(session):
|
||||||
args = ["--all-files", "--show-diff-on-failure"]
|
args = ["--all-files", "--show-diff-on-failure"]
|
||||||
|
|
||||||
session.run("pre-commit", "run", *args)
|
session.run("pre-commit", "run", *args)
|
||||||
|
session.run(
|
||||||
|
"pre-commit", "run", "-c", ".pre-commit-config-slow.yaml", *args
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@nox.session
|
@nox.session
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -64,6 +64,7 @@ commands_pre =
|
||||||
deps = pre-commit
|
deps = pre-commit
|
||||||
commands =
|
commands =
|
||||||
pre-commit run [] --all-files --show-diff-on-failure
|
pre-commit run [] --all-files --show-diff-on-failure
|
||||||
|
pre-commit run [] -c .pre-commit-config-slow.yaml --all-files --show-diff-on-failure
|
||||||
|
|
||||||
[testenv:vendoring]
|
[testenv:vendoring]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|
Loading…
Reference in a new issue