mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
If a repo does not have a hooks.yaml any hook ids are then looked for in .pre-commit-hooks-config.yaml in the repo that is under test. It has the same format as a standard hooks.yaml. The purpose of this change is to avoid needing to mirror a linter repo just to call it. Long term, tools could be reference by a URL or other source than a git repo making having a mirror repo even more of a hassle.
14 lines
283 B
Python
14 lines
283 B
Python
from __future__ import unicode_literals
|
|
|
|
|
|
CONFIG_FILE = '.pre-commit-config.yaml'
|
|
|
|
EXTERNAL_MANIFEST_FILE = '.pre-commit-hooks-config.yaml'
|
|
MANIFEST_FILE = 'hooks.yaml'
|
|
|
|
YAML_DUMP_KWARGS = {
|
|
'default_flow_style': False,
|
|
# Use unicode
|
|
'encoding': None,
|
|
'indent': 4,
|
|
}
|