forked from aiidateam/aiida-quantumespresso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
63 lines (58 loc) · 1.42 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
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
exclude: &exclude >
(?x)^(
tests/calculations/test_pw/.*.in|
tests/fixtures/.*|
tests/parsers/fixtures/.*|
tests/parsers/*.yml
)$
- id: double-quote-string-fixer
- repo: local
hooks:
- id: yapf
name: yapf
entry: yapf
language: system
types: [python]
args: ['-i']
exclude: &exclude_files >
(?x)^(
aiida_quantumespresso/calculations.*|
aiida_quantumespresso/parsers/.*|
docs/.*|
tests/.*
)$
- id: prospector
language: system
types: [file, python]
exclude: *exclude_files
name: prospector
description: 'This hook runs Prospector: https://github.com/landscapeio/prospector'
entry: prospector
- id: version-number
name: Check consistency in version number
entry: python ./.ci/validate_version_number.py
args: ['version']
language: system
files: >-
(?x)^(
setup.json|
aiida_quantumespresso/__init__.py|
./.ci/validate_version_number.py|
)$
pass_filenames: false
- repo: https://github.com/python-modernize/python-modernize.git
rev: a234ce4e185cf77a55632888f1811d83b4ad9ef2
hooks:
- id: python-modernize
exclude: >
(?x)^(
docs/.*|
examples/.*
)$
args:
- --write
- --nobackups