forked from PennyDreadfulMTG/pystache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
121 lines (108 loc) · 3.36 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# To install the git pre-commit hook run:
# pre-commit install
# To update the pre-commit hooks run:
# pre-commit install-hooks
exclude: '^(.tox/|.*\.mustache$)'
repos:
- repo: meta
hooks:
- id: check-useless-excludes
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: '(.*tests/.*|.*test.py$|^setup.py$|^test_.*.py$)'
- id: mixed-line-ending
args: [--fix=lf]
- id: check-toml
- id: check-yaml
exclude: '(conda/meta.yaml|.pep8speaks.yml)'
# use ffffff (black fork) for single quote normalization
# (otherwise switch to black for double quotes)
- repo: https://github.com/grktsh/ffffff
rev: v2020.8.31
hooks:
- id: ffffff
name: "Format code (ffffff)"
exclude: '(.*tests/.*|.*test.py$|^setup.py$|^test_.*.py$)'
language_version: python3
# - repo: "https://github.com/psf/black"
# rev: "21.9b0"
# hooks:
# - id: "black"
# language_version: python3
# name: "Format code (black)"
# exclude: '(.*tests/.*|.*test.py$|^setup.py$|^test_pystache.py$)'
- repo: "https://github.com/asottile/blacken-docs"
rev: "v1.12.1"
hooks:
- id: "blacken-docs"
name: "Format docs (blacken-docs)"
args: ["-l", "64"]
additional_dependencies:
- "black==21.9b0"
- repo: https://github.com/PyCQA/doc8
rev: v1.0.0
hooks:
- id: doc8
args:
- '--max-line-length=90'
- '--ignore=D001'
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: rst-backticks
# exclude: ChangeLog\.rst$
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/myint/autoflake
rev: v1.5.3
hooks:
- id: autoflake
exclude: '(.*tests/.*|.*test.py$|^setup.py$|^test_.*.py$)'
args:
- --in-place
- --remove-all-unused-imports
- --remove-duplicate-keys
- --remove-unused-variables
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: '(.*tests/.*|.*test.py$|^setup.py$|^test_.*.py$)'
additional_dependencies: ["flake8-bugbear"]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
args: ["-ll", "-x", "pystache/tests"]
- repo: https://github.com/PyCQA/pylint
rev: v2.15.2
hooks:
- id: pylint
exclude: '(.*tests/.*|.*test.py$|^setup.py$|^test_.*.py$)'
args:
[
"-rn",
"-sn",
"--fail-under=8.10",
]
- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1
hooks:
- id: beautysh
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: false
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false
# re-running a pull request: you can trigger a re-run on a pull request by
# commenting pre-commit.ci run (must appear on a line by itself).
# skipping push runs: skip a run by putting [skip ci], [ci skip],
# [skip pre-commit.ci], or [pre-commit.ci skip] in the commit message.