-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.pre-commit-config.yaml
115 lines (106 loc) · 3.11 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
ci:
autoupdate_schedule: monthly
autofix_prs: true
skip: [pylint-errors, pylint-warnings,mypy]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: double-quote-string-fixer
types: [python]
- id: end-of-file-fixer
- id: mixed-line-ending
types: [python]
- id: trailing-whitespace
types: [python]
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: forbid-new-submodules
- repo: https://github.com/google/yapf
rev: v0.33.0
hooks:
- id: yapf
name: yapf
types: [python]
exclude: &exclude_files >
(?x)^(
docs/.*|
)$
args: ['-i']
additional_dependencies: ['toml']
- repo: https://github.com/ikamensh/flynt/
rev: '0.78'
hooks:
- id: flynt
args: [
'--line-length=120',
'--fail-on-change',
]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.2
hooks:
- id: pyupgrade
args: [
'--py37-plus'
]
- repo: local
hooks:
#Since this runs after the formatter the docstrings should already satisfy all other hooks
- id: make-fleurxmlmodifier-doc
name: Generate Docstrings for Setter methods of FleurXMLModifier
entry: python ./utils/write_fleurxmlmodifier_docstrings.py
language: system
pass_filenames: false
- id: pylint-errors
name: pylint-errors
entry: pylint
args: [-d, W, -d, R, -d, C]
verbose: true
types: [python]
language: system
exclude: '^(docs/)|(examples/)'
- id: pylint-warnings
name: pylint-warnings
entry: pylint
verbose: true
types: [python]
language: system
exclude: '^(docs/)|(examples/)'
- id: mypy
name: mypy
entry: mypy
args: [--config-file=pyproject.toml]
language: python
types: [python]
require_serial: true
pass_filenames: true
files: >-
(?x)^(
masci_tools/io/parsers/fleur/.*py|
masci_tools/io/parsers/fleur_schema/.*py|
masci_tools/io/parsers/hdf5/.*py|
masci_tools/io/io_nmmpmat.py|
masci_tools/io/fleur_xml.py|
masci_tools/io/fleur_inpgen.py|
masci_tools/io/hdf5_util.py|
masci_tools/io/fleurxmlmodifier.py|
masci_tools/io/common_functions.py|
masci_tools/util/xml/.*py|
masci_tools/util/lockable_containers.py|
masci_tools/util/case_insensitive_dict.py|
masci_tools/util/schema_dict_util.py|
masci_tools/util/logging_util.py|
masci_tools/util/python_util.py|
masci_tools/util/math_util.py|
masci_tools/util/parse_utils.py|
masci_tools/util/typing.py|
masci_tools/util/econfig.py|
masci_tools/util/fleur_calculate_expression.py|
masci_tools/tools/fleur_inpxml_converter.py|
masci_tools/tools/greensfunction.py|
masci_tools/tools/greensf_calculations.py|
masci_tools/cmdline/parameters/slice.py|
masci_tools/vis/parameters.py|
masci_tools/util/ipython.py|
)$