-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
59 lines (53 loc) · 1.3 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
# # Install pre-commit hooks via
# pre-commit install
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: double-quote-string-fixer
exclude: &exclude_files >
(?x)^(
tests/data/.*|
examples/data/.*|
)$
- id: end-of-file-fixer
exclude: *exclude_files
- id: fix-encoding-pragma
exclude: *exclude_files
- id: mixed-line-ending
exclude: *exclude_files
- id: trailing-whitespace
exclude: *exclude_files
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v1.5.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, "2", --preserve-quotes]
- repo: https://github.com/adrienverge/yamllint
rev: v1.25.0
hooks:
- id: yamllint
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.30.0
hooks:
# yapf = yet another python formatter
- id: yapf
name: yapf
types: [python]
exclude: >
(?x)^(
docs/.*|
)$
args: ['-i']
- repo: local
hooks:
# prospector: collection of linters
- id: pylint
name: pylint
entry: pylint
types: [python]
language: system
- id: version-number
name: Check version numbers
entry: python ./.github/check_version.py
language: system
files: '^(setup.json)|(aiida_qeq/__init__.py)'