-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
72 lines (66 loc) · 1.48 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- id: check-toml
stages: [commit]
- id: check-yaml
stages: [commit]
- id: debug-statements
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- id: trailing-whitespace
stages: [commit]
- repo: https://github.com/psf/black
rev: '23.1.0'
hooks:
- id: black
stages: [commit]
args: [
--config=pyproject.toml,
]
- repo: https://github.com/adamchainz/blacken-docs
rev: '1.13.0'
hooks:
- id: blacken-docs
stages: [commit]
args: [
--line-length=88
]
- repo: https://github.com/PyCQA/docformatter
rev: 'v1.5.0'
hooks:
- id: docformatter
stages: [commit]
args: [
--config=pyproject.toml,
]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.247'
hooks:
- id: ruff
stages: [commit]
args: [
--fix,
--show-fixes
]
- repo: local
hooks:
- id: pytest
language: python
name: pytest
entry: pytest
always_run: true
pass_filenames: false
stages: [push]
verbose: true
args: [
--cov=moorpy,
--cov-report=xml,
./tests,
]