-
Notifications
You must be signed in to change notification settings - Fork 15
/
.pre-commit-config.yaml
60 lines (58 loc) · 1.36 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
# Install pre-commit hooks via
# pre-commit install
repos:
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
name: yapf
types: [python]
args: ['-i']
exclude: &exclude_files >
(?x)^(
sportran/utils/obsolete/.*|
sportran_gui/utils/tk_html_widgets/*.py|
docs/.*|
tests/test_cli/.*|
examples/.*|
setup.py|
)$
additional_dependencies: ['toml']
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.1.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: double-quote-string-fixer
- id: fix-encoding-pragma
- id: end-of-file-fixer
exclude: >
(?x)^(
tests/test_cli/.*|
sportran/utils/obsolete/.*|
)$
- id: trailing-whitespace
exclude: >
(?x)^(
sportran/utils/obsolete/.*|
sportran_gui/utils/tk_html_widgets/.*py|
docs/.*|
tests/test_cli/.*|
tests/test_notebooks/.*|
examples/.*|
)$
#
#- repo: https://github.com/PyCQA/pylint
# rev: v2.12.2
# hooks:
# - id: pylint
# language: system
# exclude: *exclude_files