forked from aiidateam/aiida-quantumespresso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
67 lines (62 loc) · 1.68 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: mixed-line-ending
- id: trailing-whitespace
exclude: >-
(?x)^(
tests/.*.*out|
tests/.*.in$
)$
- repo: https://github.com/ikamensh/flynt/
rev: '0.55'
hooks:
- id: flynt
args: [
'--line-length=120',
'--fail-on-change',
]
- repo: https://github.com/PyCQA/pydocstyle
rev: 5.0.2
hooks:
- id: pydocstyle
exclude: &exclude_files >
(?x)^(
aiida_quantumespresso/calculations/pwimmigrant.*|
aiida_quantumespresso/parsers/.*|
docs/.*|
tests/.*(?<!\.py)$
)$
args: ['--ignore=D104,D202,D203,D213']
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.30.0
hooks:
- id: yapf
name: yapf
types: [python]
args: ['-i']
exclude: 'docs/source/conf.py'
- repo: https://github.com/PyCQA/pylint
rev: pylint-2.6.0
hooks:
- id: pylint
language: system
exclude: *exclude_files
- repo: local
hooks:
- id: version-number
name: Check consistency in version number
entry: python ./utils/validate_version_number.py
args: ['version']
language: system
files: >-
(?x)^(
setup.json|
aiida_quantumespresso/__init__.py|
./utils/validate_version_number.py|
)$
pass_filenames: false