A framework for managing and maintaining multi-language pre-commit hooks.
Find a file
Peter Cock 662fdf2687 Do not hide user-specified skipped hooks
e.g.

$ SKIP=mypy pre-commit run --files pre_commit/*.py
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check docstring is first.................................................Passed
Check JSON...........................................(no files to check)Skipped
Check Yaml...........................................(no files to check)Skipped
Debug Statements (Python)................................................Passed
Tests should end in _test.py.........................(no files to check)Skipped
Fix requirements.txt.................................(no files to check)Skipped
Fix double quoted strings................................................Passed
flake8...................................................................Passed
autopep8.................................................................Passed
Validate Pre-Commit Manifest.........................(no files to check)Skipped
pyupgrade................................................................Passed
Reorder python imports...................................................Passed
Add trailing commas......................................................Passed
setup-cfg-fmt........................................(no files to check)Skipped
mypy....................................................................Skipped
Check hooks apply to the repository..................(no files to check)Skipped
Check for useless excludes...........................(no files to check)Skipped

Versus:

$ SKIP=mypy pre-commit run --files pre_commit/*.py -q
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check docstring is first.................................................Passed
Debug Statements (Python)................................................Passed
Fix double quoted strings................................................Passed
flake8...................................................................Passed
autopep8.................................................................Passed
pyupgrade................................................................Passed
Reorder python imports...................................................Passed
Add trailing commas......................................................Passed
mypy....................................................................Skipped

Here we still show mypy which the user had said to skip.
2020-08-24 19:19:04 +01:00
pre_commit Do not hide user-specified skipped hooks 2020-08-24 19:19:04 +01:00
testing skip rbenv if ruby and gem are installed with default language_version 2020-06-15 13:50:47 -07:00
tests Add --quiet to the hook-impl command. 2020-08-22 23:38:44 +01:00
.gitignore mypy passes with check_untyped_defs 2020-01-12 09:27:04 -08:00
.pre-commit-config.yaml upgrade mypy to get typeshed fixes 2020-07-08 13:55:28 -07:00
.pre-commit-hooks.yaml Remove validate_config hook 2017-08-23 14:06:48 -07:00
azure-pipelines.yml skip rbenv if ruby and gem are installed with default language_version 2020-06-15 13:50:47 -07:00
CHANGELOG.md v2.7.0 2020-08-22 13:31:12 -07:00
CONTRIBUTING.md Add foor missing required dependencies in CONTRIBUTING.md 2020-06-12 18:38:44 +02:00
LICENSE MIT 2014-06-05 08:57:40 -07:00
README.md Add pre-commit badge 2020-02-14 10:49:03 -08:00
requirements-dev.txt Use covdefaults to handle coveragerc 2020-02-29 14:25:19 -08:00
setup.cfg v2.7.0 2020-08-22 13:31:12 -07:00
setup.py Migrate setup.py to setup.cfg declarative metadata 2019-02-27 22:12:03 -08:00
tox.ini slightly speed up tests by avoiding pre-commit install 2020-05-26 21:53:16 -07:00

Build Status Azure DevOps coverage pre-commit

pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

For more information see: https://pre-commit.com/