-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (49 loc) · 1.74 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
exclude: "^$"
fail_fast: false
default_stages: ['commit']
minimum_pre_commit_version: 2.9.3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
args: ['--maxkb=90000']
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
# - id: destroyed-symlinks
- id: forbid-new-submodules
- id: mixed-line-ending
args: ['--fix=auto']
- id: trailing-whitespace
args: ['--markdown-linebreak-ext=md']
exclude_types: ['yaml']
- id: end-of-file-fixer
- id: pretty-format-json
args: ['--autofix']
- id: requirements-txt-fixer
- repo: https://github.com/adrienverge/yamllint
rev: v1.26.0
hooks:
- id: yamllint
# args: [-c=~/.config/yamllint/config]
- repo: local
hooks:
- id: talisman-precommit
name: talisman
entry: bash -c 'if [ -n "${TALISMAN_HOME:-}" ]; then ${TALISMAN_HOME}/talisman_hook_script pre-commit; else echo "TALISMAN does not exist. Consider installing from https://github.com/thoughtworks/talisman . If you already have talisman installed, please ensure TALISMAN_HOME variable is set to where talisman_hook_script resides, for example, TALISMAN_HOME=${HOME}/.talisman/bin"; fi'
language: system
pass_filenames: false
types: ['text']
verbose: true
exclude: "^foobar/"
# - id: check-vcs-permalinks
# repos:
# - repo: https://github.com/psf/black
# rev: 20.8b1 # Replace by any tag/version: https://github.com/psf/black/tags
# hooks:
# - id: black
# language_version: python3 # Should be a command that runs python3.6+