pre-commit/pre_commit
Filippos Giannakos 2f4199850d Add --allow-missing-config option to install
When no '.pre-commit-config.yaml' file exists while `pre-commit` hooks
are enabled, `pre-commit` returns an error and the action is aborted.
This is a very common scenario when pre-commit is added later on a
project and the user wants to work on a previous branch where the
configuration file does not exist.

This commits allow the user to optionally install the `pre-commit` hooks
with an option to allow a missing configuration and trigger only the
legacy pre-commit hooks (if any) when it is missing.
2017-02-23 18:25:51 +02:00
..
clientlib Reorganize output writing 2016-11-26 12:15:55 -08:00
commands Add --allow-missing-config option to install 2017-02-23 18:25:51 +02:00
languages Put the . in docker build at the end. 2017-01-27 14:22:00 -08:00
resources Add --allow-missing-config option to install 2017-02-23 18:25:51 +02:00
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
__main__.py Runnable as python -m pre_commit 2014-07-22 19:22:29 -07:00
color.py Remove py26 format literals 2016-09-15 08:41:58 -07:00
constants.py Encode the 'local hooks repo' version into the store 2017-02-16 12:32:58 -08:00
envcontext.py __defaults__ is available in py27 2017-02-16 10:46:23 -08:00
error_handler.py Reorganize output writing 2016-11-26 12:15:55 -08:00
errors.py Add error_handler and use it. 2014-08-13 11:02:28 -07:00
five.py __defaults__ is available in py27 2017-02-16 10:46:23 -08:00
git.py Add first class support for golang hooks 2017-01-24 13:49:22 -08:00
jsonschema_extensions.py Update some pre-commit hooks + some minor tweaks 2015-01-04 15:58:39 -08:00
logging_handler.py Centralize logging initialization 2016-11-26 14:19:37 -08:00
main.py Add --allow-missing-config option to install 2017-02-23 18:25:51 +02:00
make_archives.py Update the archive resources 2016-12-03 17:39:41 +13:00
manifest.py Local repositories clone a blank repo 2017-02-15 15:36:53 -08:00
output.py Reorganize output writing 2016-11-26 12:15:55 -08:00
parse_shebang.py Fix eslint on windows 2017-02-10 18:09:00 +11:00
prefixed_command_runner.py Centralize logging initialization 2016-11-26 14:19:37 -08:00
repository.py Validate minimum version for local hooks as well 2017-02-16 14:30:01 -08:00
runner.py Incoroporate PR feedback 2016-12-02 13:53:59 -08:00
staged_files_only.py Remove py26 format literals 2016-09-15 08:41:58 -07:00
store.py Encode the 'local hooks repo' version into the store 2017-02-16 12:32:58 -08:00
util.py Local repositories clone a blank repo 2017-02-15 15:36:53 -08:00
xargs.py xargs returns nonzero for negate + not found exe (fixes pcre + not found #447) 2016-12-04 15:07:35 -08:00