This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
90 lines (78 loc) · 2.16 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
ci:
autofix_prs: false
skip: [dvc-pre-commit, dvc-pre-push, dvc-post-checkout]
default_language_version:
python: python3.11
repos:
- repo: https://github.com/python-poetry/poetry
rev: 1.5.0
hooks:
- id: poetry-check
name: Check poetry (poetry-check)
always_run: true
- repo: https://github.com/iterative/dvc
rev: 2.51.0
hooks:
- id: dvc-pre-commit
additional_dependencies:
- .[all]
language_version: python3
stages:
- commit
- id: dvc-pre-push
additional_dependencies:
- .[all]
language_version: python3
stages:
- push
- id: dvc-post-checkout
additional_dependencies:
- .[all]
language_version: python3
stages:
- post-checkout
always_run: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
name: Check case conflict (check-case-conflict)
- id: check-yaml
name: Check yaml (check-yaml)
exclude: mkdocs.yaml
types: [yaml]
- id: check-json
name: Check json (check-json)
types: [json]
- id: check-added-large-files
name: Check added large files (check-added-large-files)
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout
name: strip output from notebooks (nbstripout)
stages: [commit, push]
types: [jupyter]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.270
hooks:
- id: ruff
name: Check style and linting (ruff)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
hooks:
- id: mypy
name: Check types (mypy)
additional_dependencies: [types-requests]
require_serial: true
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black-jupyter
name: Format python code (black)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
name: Format files (prettier)
exclude_types: [python, jupyter]