pre-commit/pre_commit
Konrad Weihmann 91f0344b08 hook: enable calling out of tree entries
in the following setup

├── common
│   ├── .pre-commit-config.yaml
│   ├── script1.sh
│   └── script-config
├── repo1
│   └── code_file
└── repo2
    └── code_file

a common configuration from 'common' folder will be installed using an
absolute path to repo1 and repo2.
As local tools needs to be run (script1.sh with its
configuration script-config) we need to pass the path to common
somehow into the hook cmdline.

Add support for a template variable %CONFIG_BASEPATH% which
is automatically expanded to the configuration directory when
pre-commit run is called

This helps to create a single source of truth setup, while still
keeping the possibility to call non public tools and configurations

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
2022-04-22 13:26:23 +02:00
..
commands hook: enable calling out of tree entries 2022-04-22 13:26:23 +02:00
languages add additional info to healthy-after-install check 2022-04-16 16:46:28 -04:00
meta_hooks drop python 3.6 support 2022-01-18 18:44:20 -05:00
resources Update ruby-build to v20220412 2022-04-17 07:12:48 -07:00
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
__main__.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
clientlib.py implement default_install_hook_types 2022-04-02 15:11:31 -04:00
color.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
constants.py implement default_install_hook_types 2022-04-02 15:11:31 -04:00
envcontext.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
error_handler.py convince mypy that these are the same 2022-03-14 18:37:07 -04:00
errors.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
file_lock.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
git.py Split get_git_dir() into get_git_dir() and get_git_common_dir() 2022-04-02 15:07:22 -04:00
hook.py hook: enable calling out of tree entries 2022-04-22 13:26:23 +02:00
logging_handler.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
main.py implement default_install_hook_types 2022-04-02 15:11:31 -04:00
output.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
parse_shebang.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
prefix.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
repository.py add additional info to healthy-after-install check 2022-04-16 16:46:28 -04:00
staged_files_only.py move patch discarding inside try for staged_files_only 2022-04-02 16:24:57 -04:00
store.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
util.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
xargs.py drop python 3.6 support 2022-01-18 18:44:20 -05:00