-
Notifications
You must be signed in to change notification settings - Fork 22
/
.pre-commit-config.yaml
93 lines (91 loc) · 3 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
91
92
93
exclude: (^doc/)|(.*/venv/)
default_stages: [commit]
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.3.5
hooks:
- id: ruff
name: ruff-cellxgene-census
files: ^api/python/cellxgene_census
types_or: [python, pyi, jupyter]
args: ["--config=./api/python/cellxgene_census/pyproject.toml", "--fix"]
- id: ruff
name: ruff-tools
files: ^tools
types_or: [python, pyi, jupyter]
args: ["--config=./tools/pyproject.toml", "--fix" ]
- id: ruff
name: ruff-notebooks
files: ^api/python/notebooks
types_or: [python, pyi, jupyter]
args: ["--config=./api/python/notebooks/pyproject.toml", "--fix"]
- id: ruff-format
name: ruff-format-cellxgene-census
files: ^api/python/cellxgene_census
types_or: [python, pyi, jupyter]
args: ["--config=./api/python/cellxgene_census/pyproject.toml"]
- id: ruff-format
name: ruff-format-tools
files: ^tools
types_or: [python, pyi, jupyter]
args: ["--config=./tools/pyproject.toml"]
- id: ruff-format
name: ruff-format-notebooks
files: ^api/python/notebooks
types_or: [python, pyi, jupyter]
args: ["--config=./api/python/notebooks/pyproject.toml"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
name: mypy-cellxgene-census
files: ^api/python/cellxgene_census
args: ["--config-file=./api/python/cellxgene_census/pyproject.toml"]
additional_dependencies:
- attrs
- types-requests
- pytest
- pandas-stubs
- numpy
- typing_extensions
- types-setuptools
- id: mypy
name: mypy-tools-cellxgene_census_builder
files: ^tools/cellxgene_census_builder
args: ["--config-file=./tools/cellxgene_census_builder/pyproject.toml", "--python-version=3.11"]
additional_dependencies:
- attrs
- types-requests
- pytest
- pandas-stubs
- numpy
- typing_extensions
- types-setuptools
- types-PyYAML
- types-psutil
- id: mypy
name: mypy-tools-census-contrib
files: ^tools/census_contrib
args: ["--config-file=./tools/census_contrib/pyproject.toml", "--python-version=3.10"]
additional_dependencies:
- attrs
- types-requests
- pandas-stubs
- numpy
- typing_extensions
- types-setuptools
- types-PyYAML
- id: mypy
name: mypy-tools-other
files: ^tools/
exclude: ^tools/(cellxgene_census_builder|census_contrib)
args: ["--config", "./tools/pyproject.toml"]
additional_dependencies:
- numpy
- pandas-stubs
- typing_extensions
- types-PyYAML
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint