-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
63 lines (58 loc) · 1.53 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
repos:
- repo: local
hooks:
- id: format
name: mainly isort
entry: make format
language: system
pass_filenames: false
- id: style-check
name: Check code style
entry: black --diff --check cluster examples tests
language: system
pass_filenames: false
types: [python3]
# - id: doc-test
# name: Ensure doc is buildable
# entry: make doc
# language: system
# pass_filenames: false
- id: unit-test
name: Ensure unit tests all pass
entry: make test
language: system
pass_filenames: false
- id: gen-coverage-badge
name: Generate badge for test coverage
entry: coverage-badge -o ./docs/assets/coverage.svg -f
language: system
pass_filenames: false
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
args: [--check]
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: flake8
args: ["--ignore=E501,E203,F401,W503,W504,E741,F403,F405,F841,W605"]
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- id: debug-statements
- id: end-of-file-fixer
- repo: https://github.com/asottile/blacken-docs
rev: v1.8.0
hooks:
- id: blacken-docs
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
# - repo: https://github.com/myint/docformatter
# rev: v1.3.1
# hooks:
# - id: docformatter
# args: [--in-place]