mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Puts message directly into YAML file: "do not make PR to pre-commit/pre-commit to update this" in view of the closed PRs to update this value: https://github.com/pre-commit/pre-commit/pull/1964 https://github.com/pre-commit/pre-commit/pull/2616 https://github.com/pre-commit/pre-commit/pull/2892 https://github.com/pre-commit/pre-commit/pull/3344 https://github.com/pre-commit/pre-commit/pull/3406 https://github.com/pre-commit/pre-commit/pull/3423
18 lines
510 B
Python
18 lines
510 B
Python
from __future__ import annotations
|
|
SAMPLE_CONFIG = '''\
|
|
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v3.2.0 # do not make PR to pre-commit/pre-commit to update this
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
'''
|
|
|
|
|
|
def sample_config() -> int:
|
|
print(SAMPLE_CONFIG, end='')
|
|
return 0
|