-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
80 lines (71 loc) · 2.33 KB
/
.pre-commit-config.yaml
File metadata and controls
80 lines (71 loc) · 2.33 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.42.3
hooks:
- id: typos
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
hooks:
- id: ruff-check
files: ^((skore|skore-hub-project|skore-local-project|skore-mlflow-project)/(hatch|src|tests))|(examples)/
args: [--fix, --extend-select, I]
- id: ruff-format
files: ^((skore|skore-hub-project|skore-local-project|skore-mlflow-project)/(hatch|src|tests))|(examples)/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
hooks:
- id: mypy
pass_filenames: false
alias: mypy-skore
name: mypy skore/
files: ^skore/
args: [--config-file=skore/pyproject.toml, skore]
additional_dependencies:
# from dependencies
- IPython
- anywidget
- ipywidgets
- joblib
- matplotlib
- numpy
- pandas
- plotly
- rich
- scikit-learn
- skrub
- seaborn
# from test dependencies
- polars
- pyarrow
- scipy-stubs
- id: mypy
pass_filenames: false
alias: mypy-skore-hub-project
name: mypy skore-hub-project/
files: ^skore-hub-project/
args: [--config-file=skore-hub-project/pyproject.toml, skore-hub-project]
additional_dependencies: [skore, blake3, httpx, orjson, pandas-stubs, pydantic]
- id: mypy
pass_filenames: false
alias: mypy-skore-local-project
name: mypy skore-local-project/
files: ^skore-local-project/
args: [--config-file=skore-local-project/pyproject.toml, skore-local-project]
additional_dependencies: [skore]
- id: mypy
pass_filenames: false
alias: mypy-skore-mlflow-project
name: mypy skore-mlflow-project/
files: ^skore-mlflow-project/
args: [--config-file=skore-mlflow-project/pyproject.toml, skore-mlflow-project]
additional_dependencies: [skore, mlflow]