mirror of https://github.com/pypa/pip
Improve local pre-commit experience
This commit is contained in:
parent
03d5f56b10
commit
ccbf085095
|
@ -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
|
||||
exclude: ^news/(.gitignore|.*\.(process|removal|feature|bugfix|vendor|doc|trivial).rst)
|
||||
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 .readthedocs.yml
|
||||
exclude .pre-commit-config.yaml
|
||||
exclude .pre-commit-config-slow.yaml
|
||||
exclude tox.ini
|
||||
exclude noxfile.py
|
||||
|
||||
|
|
|
@ -149,6 +149,9 @@ def lint(session):
|
|||
args = ["--all-files", "--show-diff-on-failure"]
|
||||
|
||||
session.run("pre-commit", "run", *args)
|
||||
session.run(
|
||||
"pre-commit", "run", "-c", ".pre-commit-config-slow.yaml", *args
|
||||
)
|
||||
|
||||
|
||||
@nox.session
|
||||
|
|
Loading…
Reference in New Issue