Merge pull request #9333 from sbidoul/pre-commit-speed-sbi

Improve local pre-commit experience
This commit is contained in:
Stéphane Bidoul 2020-12-23 12:47:20 +01:00 committed by GitHub
commit 41e4547542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 5 deletions

View 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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -64,6 +64,7 @@ commands_pre =
deps = pre-commit
commands =
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]
basepython = python3