Skip to content

Commit 7c2f372

Browse files
authored
chore: fix ability to run mypy via hatch (#3952)
1 parent 1445001 commit 7c2f372

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ version.source = "vcs"
153153
[tool.hatch.build]
154154
hooks.vcs.version-file = "src/zarr/_version.py"
155155

156+
[tool.hatch.envs.dev]
157+
dependency-groups = ["dev"]
158+
156159
[tool.hatch.envs.test]
157160
dependency-groups = ["test"]
158161

@@ -184,7 +187,6 @@ run-coverage-html = [
184187
]
185188
run = "pytest --ignore tests/benchmarks"
186189
run-verbose = "run-coverage --verbose"
187-
run-mypy = "mypy src"
188190
run-hypothesis = [
189191
"coverage run --source=src -m pytest -nauto --run-slow-hypothesis tests/test_properties.py tests/test_store/test_stateful* {args:}",
190192
"coverage xml",
@@ -362,6 +364,7 @@ ignore = [
362364
"tests/**" = ["ANN001", "ANN201", "RUF029", "SIM117", "SIM300"]
363365

364366
[tool.mypy]
367+
files = ["src", "tests"]
365368
python_version = "3.12"
366369
ignore_missing_imports = true
367370
namespace_packages = false

0 commit comments

Comments
 (0)