forked from pangaea-data-publisher/fuji
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
48 lines (45 loc) · 1.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: double-quote-string-fixer
types: [python]
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: mixed-line-ending
types: [python]
- id: trailing-whitespace
types: [python]
- id: check-yaml
- id: check-json
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.31.0
hooks:
- id: yapf
name: yapf
types: [python]
exclude: &exclude_files >
(?x)^(
docs/.*|
)$
args: ['-i']
# TODO: reenable and work through the massive list of errors and warnings
# - repo: https://github.com/pycqa/pylint
# rev: pylint-2.8.0
# hooks:
# - id: pylint
# exclude: '^(docs/)|(examples/)|(fuji_server/models/)'
- repo: local
hooks:
- id: version-number
name: Check version numbers
entry: python ./utils/validate_version_consistency.py
language: system
files: >-
(?x)^(
setup.py|
utils/validate_version_consistency.py|
masci_tools/__init__.py|
.bumpversion.cfg
)$
pass_filenames: false