-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
63 lines (57 loc) · 1.43 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
exclude: "^(doc)|(cookiecutters)|(aiida_kkr/tests)"
ci:
autoupdate_schedule: monthly
autofix_prs: true
skip: [pylint, version-number]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-added-large-files
- id: double-quote-string-fixer
- id: forbid-new-submodules
- repo: https://github.com/google/yapf
rev: v0.40.2
hooks:
- id: yapf
name: yapf
types: [python]
args: ["-i"]
additional_dependencies: [toml]
- repo: https://github.com/ikamensh/flynt/
rev: '1.0.1'
hooks:
- id: flynt
args: [
'--line-length=120',
'--fail-on-change',
]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
args: [-d, W, -d, R, -d, C]
verbose: true
types: [python]
language: system
exclude: |
(?x)(
^examples/
)
- id: version-number
name: Check version numbers
entry: python ./utils/validate_version_consistency.py
language: system
files: >-
(?x)^(
setup.py|
utils/validate_version_consistency.py|
aiida_kkr/__init__.py|
.bumpversion.cfg
)$
pass_filenames: false