-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
45 lines (43 loc) · 975 Bytes
/
.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
# Install pre-commit hooks via
# pre-commit install
repos:
#- repo: https://github.com/pre-commit/mirrors-yapf
# rev: v0.30.0
# hooks:
# - id: yapf
# name: yapf
# types: [python]
# args: ['-i']
# exclude: &exclude_files >
# (?x)^(
# sportran_gui/utils/tk_html_widgets/*.py|
# docs/.*|
# tests/test_cli/.*|
# examples/.*|
# setup.py|
# )$
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.1.0
hooks:
- id: check-ast
- 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: end-of-file-fixer
exclude: >
(?x)^(
tests/ref/.*|
)$
- id: fix-encoding-pragma
- id: trailing-whitespace
exclude: >
(?x)^(
docs/.*|
tests/ref/.*|
)$