mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
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>
|
||
|---|---|---|
| .. | ||
| commands | ||
| languages | ||
| meta_hooks | ||
| __init__.py | ||
| clientlib_test.py | ||
| color_test.py | ||
| conftest.py | ||
| envcontext_test.py | ||
| error_handler_test.py | ||
| git_test.py | ||
| logging_handler_test.py | ||
| main_test.py | ||
| output_test.py | ||
| parse_shebang_test.py | ||
| prefix_test.py | ||
| repository_test.py | ||
| staged_files_only_test.py | ||
| store_test.py | ||
| util_test.py | ||
| xargs_test.py | ||