Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ env:
PIP_ROOT_USER_ACTION: ignore

jobs:
mypy:
name: mypy
ty:
name: ty
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -34,4 +34,4 @@ jobs:
pixi list --environment test
- name: Type check
run: |
pixi run -e test run-mypy
pixi run -e test ty check
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![Code coverage](https://codecov.io/gh/zarr-developers/VirtualiZarr/branch/main/graph/badge.svg?flag=unittests)](https://codecov.io/gh/zarr-developers/VirtualiZarr)
[![Docs](https://readthedocs.org/projects/virtualizarr/badge/?version=latest)](https://virtualizarr.readthedocs.io/en/latest/)
[![Linted and Formatted with Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![pre-commit Enabled](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://pre-commit.com/)
[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202-cb2533.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![Python Versions](https://img.shields.io/python/required-version-toml?tomlFilePath=https://raw.githubusercontent.com/zarr-developers/VirtualiZarr/main/pyproject.toml&logo=Python&logoColor=gold&label=Python)](https://docs.python.org)
Expand Down
27 changes: 7 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,18 @@ docs = [
]
dev = [
"codecov",
"mypy",
"pandas-stubs",
"pooch",
"pre-commit",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-mypy",
"pytest-xdist",
"ruff",
"s3fs",
"lithops",
"dask",
"ty>=0.0.2",
]

[project.urls]
Expand Down Expand Up @@ -183,7 +182,7 @@ icechunk = "==1.1.2"

# Define commands to run within the test environments
[tool.pixi.feature.test.tasks]
run-mypy = { cmd = "mypy virtualizarr" }
run-ty = { cmd = "ty check" }
# Using '--dist loadscope' (rather than default of '--dist load' when '-n auto'
# is used), reduces test hangs that appear to be macOS-related.
run-tests = { cmd = "pytest -n auto --dist loadscope --run-network-tests --verbose --durations=10" }
Expand Down Expand Up @@ -226,24 +225,12 @@ exclude = ["docs", "tests", "tests.*", "docs.*"]
[tool.setuptools.package-data]
datatree = ["py.typed"]

[tool.mypy]
files = "virtualizarr/**/*.py"
show_error_codes = true
[tool.ty.src]
include = ["virtualizarr"]
exclude = ["docs", ".eggs"]

[[tool.mypy.overrides]]
module = [
"docker",
"fsspec.*",
"s3fs.*",
"h5py",
"kerchunk.*",
"minio",
"numcodecs.*",
"ujson",
"zarr",
"requests",
]
ignore_missing_imports = true
[tool.ty.rules]
unresolved-import = "ignore"

[tool.ruff]
# Same as Black.
Expand Down
Loading