feat(config): read config path from env

This commit is contained in:
Alexander Ilyin 2024-12-18 01:57:24 +00:00
parent cb14bc2d9c
commit 40d9c78180
No known key found for this signature in database

View file

@ -1,9 +1,10 @@
from __future__ import annotations from __future__ import annotations
import os
import importlib.metadata import importlib.metadata
CONFIG_FILE = '.pre-commit-config.yaml' CONFIG_FILE = os.getenv('PRE_COMMIT_CONFIG_FILE', '.pre-commit-config.yaml')
MANIFEST_FILE = '.pre-commit-hooks.yaml' MANIFEST_FILE = os.getenv('PRE_COMMIT_MANIFEST_FILE', '.pre-commit-hooks.yaml')
# Bump when modifying `empty_template` # Bump when modifying `empty_template`
LOCAL_REPO_VERSION = '1' LOCAL_REPO_VERSION = '1'