-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pre-commit-config.yaml
70 lines (68 loc) · 1.73 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
68
69
70
ci:
autoupdate_schedule: quarterly
skip: [clang-format]
exclude: (?:^hoomd/extern/)
repos:
- repo: local
hooks:
- id: make_workflows
name: make_workflows
language: python
entry: python3 .github/workflows/make_workflows.py
pass_filenames: false
always_run: true
additional_dependencies: [jinja2==3.0.1, pyyaml==5.4.1]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.0.1'
hooks:
- id: end-of-file-fixer
exclude_types: [svg]
- id: trailing-whitespace
exclude_types: [svg]
- id: check-json
- id: check-yaml
exclude: (?:^.github/workflows/templates) # templates are not properly formatted yaml
- id: check-case-conflict
- repo: https://github.com/google/yapf
rev: 'v0.31.0'
hooks:
- id: yapf
- repo: https://github.com/PyCQA/flake8
rev: '3.9.2'
hooks:
- id: flake8
additional_dependencies:
- pep8-naming==0.12.1
- pydocstyle==6.1.1
- flake8-docstrings==1.6.0
- flake8-rst-docstrings==0.2.3
# Exclude components not yet ported to hoomd v3
# TODO: Remove these exclusions as components are ported
# These also need to be removed in setup.cfg
exclude: |
(?x)(
^hoomd/md/wall.py|
^hoomd/md/impropers.py|
^hoomd/hpmc/analyze.py|
^hoomd/hpmc/field.py|
^hoomd/extern/|
^hoomd/mpcd/|
^hoomd/dem/|
^hoomd/jit/|
^hoomd/metal/|
^hoomd/minimize/|
^doc/dev/
)
- repo: https://github.com/glotzerlab/pre-commit-clang-format
rev: v1.1.0
hooks:
- id: clang-format
stages: [manual]
exclude: |
(?x)(
^CMake/|
^hoomd/extern/|
^hoomd/hpmc/UpdaterClusters\.h|
^hoomd/hpmc/IntegratorHPMCMono\.h|
^doc/dev/
)