mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
feat(config): read config path from env
This commit is contained in:
parent
cb14bc2d9c
commit
40d9c78180
1 changed files with 3 additions and 2 deletions
|
|
@ -1,9 +1,10 @@
|
|||
from __future__ import annotations
|
||||
import os
|
||||
|
||||
import importlib.metadata
|
||||
|
||||
CONFIG_FILE = '.pre-commit-config.yaml'
|
||||
MANIFEST_FILE = '.pre-commit-hooks.yaml'
|
||||
CONFIG_FILE = os.getenv('PRE_COMMIT_CONFIG_FILE', '.pre-commit-config.yaml')
|
||||
MANIFEST_FILE = os.getenv('PRE_COMMIT_MANIFEST_FILE', '.pre-commit-hooks.yaml')
|
||||
|
||||
# Bump when modifying `empty_template`
|
||||
LOCAL_REPO_VERSION = '1'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue