forked from aiidateam/aiida-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
63 lines (59 loc) · 1.78 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
# yet another python formatter
- repo: git://github.com/pre-commit/mirrors-yapf
sha: v0.19.0
hooks:
- id: yapf
language: system
files: >- # begin multiline string
(?x)^( # (?x) -> multiline regex, ^ -> beginning of file path
aiida/control/.*.py| # must match the whole path, therefore
aiida/cmdline/tests/.*.py| # the .*.py (.* matches everything)
docs/update_req_for_rtd.py| # a|b -> match a OR b
.travis_data/test_setup.py|
.travis-data/test_plugin_testcase.py|
aiida/backends/tests/verdi_commands.py|
aiida/utils/fixtures.py
)$ # $ -> end of file path, to add a directory, give full/path/.*
# prospector: collection of linters
- repo: git://github.com/guykisel/prospector-mirror
sha: b27f281eb9398fc8504415d7fbdabf119ea8c5e1
hooks:
- id: prospector
language: system
exclude: ^(tests/|examples/)
types: [file, python]
files: >-
(?x)^(
aiida/control/.*.py|
aiida/cmdline/tests/.*.py|
docs/update_req_for_rtd.py|
.travis_data/test_setup.py|
.travis-data/test_plugin_testcase.py|
aiida/backends/tests/verdi_commands.py|
aiida/utils/fixtures.py
)$
- repo: local
hooks:
- id: rtd-requirements
name: Requirements for RTD
entry: python ./docs/update_req_for_rtd.py --pre-commit
language: system
files: >-
(?x)^(
setup_requirements.py|
docs/requirements_for_rtd.txt|
docs/update_req_for_rtd.py|
)$
pass_filenames: false
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v1.1.1
hooks:
- id: check-yaml
- repo: local
hooks:
- id: travis-linter
name: travis
entry: travis lint
files: .travis.yml
language: ruby
additional_dependencies: ['travis']