-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
61 lines (61 loc) · 1.69 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
fail_fast: true
default_stages: [pre-commit]
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: "https://github.com/astral-sh/ruff-pre-commit"
rev: v0.1.8
hooks:
- id: ruff
stages: [commit, manual]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0 # Use the sha / tag you want to point at
hooks:
- id: mypy
stages: [commit, manual]
args:
- "--check-untyped-defs"
- "--strict"
additional_dependencies:
[
types-colorama==0.4.15.12,
types-requests==2.31.0.10,
types-tqdm==4.66.0.5,
python-dotenv==1.0.0,
pytest==7.4.3,
graphviz==0.20.1,
vpython==7.6.3,
z3-solver==4.12.4.0,
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: mixed-line-ending
stages: [commit, manual]
args:
- "--fix=lf"
- repo: local
hooks:
- id: pytest-check
name: pytest-check
stages: [pre-push, manual]
types: [python]
entry: pytest -v --color=yes
language: system
always_run: true
pass_filenames: false
- id: coverage-check # technically runs pytest again. oh well
name: coverage-check
stages: [pre-push, manual]
types: [python]
entry: coverage run
language: system
always_run: true
pass_filenames: false
- id: coverage-combine
name: coverage-combine
stages: [pre-push, manual]
types: [python]
entry: coverage combine
language: system
always_run: true
pass_filenames: false