pre-commit/tests
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
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
clientlib_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
color_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
conftest.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
envcontext_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
error_handler_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
git_test.py Split get_git_dir() into get_git_dir() and get_git_common_dir() 2022-04-02 15:07:22 -04:00
logging_handler_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
main_test.py implement default_install_hook_types 2022-04-02 15:11:31 -04:00
output_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
parse_shebang_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
prefix_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
repository_test.py fix tests for golang 1.18 2022-04-13 17:52:55 -04:00
staged_files_only_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
store_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
util_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
xargs_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00