Skip to content

Commit f17d1b4

Browse files
committed
try to add requiremens to pre-commit hook
1 parent 94bff07 commit f17d1b4

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,23 @@ repos:
4040
additional_dependencies:
4141
- tomli
4242
# See https://github.com/scverse/anndata/pull/2174
43-
# - repo: https://github.com/pre-commit/mirrors-mypy
44-
# rev: v1.18.2
45-
# hooks:
46-
# - id: mypy
43+
# Running `pre-commit run -a` gives the following error:
44+
# tests/conftest.py: error: Duplicate module named "conftest" (also at "./tests/lazy/conftest.py")
45+
# tests/conftest.py: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info
46+
# This seems to be the same failure we get on the prec-commit.ci
47+
- repo: https://github.com/pre-commit/mirrors-mypy
48+
rev: v1.18.2
49+
hooks:
50+
- id: mypy
51+
args: [--config-file=pyproject.toml, .]
52+
pass_filenames: false
53+
additional_dependencies:
54+
- pandas
55+
- numpy
56+
- scipy
57+
- h5py
58+
- natsort
59+
- packaging
60+
- array_api_compat
61+
- legacy-api-wrap
62+
- zarr

0 commit comments

Comments
 (0)