diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index db8b40e8..d35aea7f 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -21,6 +21,7 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v6 + - uses: astral-sh/setup-uv@v7 - uses: actions/setup-python@v6 with: python-version: '3.12' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7cc67fb3..4756c859 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.2 + rev: v0.14.14 hooks: - id: ruff-check args: [ --fix ] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.1 + rev: v1.19.1 hooks: - id: mypy exclude: ^tests|^examples @@ -16,3 +16,10 @@ repos: - types-PyYAML - types-requests - types-urllib3 + + - repo: local + hooks: + - id: ty + name: ty check + entry: uvx ty check . --ignore unresolved-import + language: python diff --git a/pyproject.toml b/pyproject.toml index 5b53c4b5..250a44d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ full = [ # complete package functionality "joblib >= 1.4.2", "matplotlib >= 3.9.2", "numba >= 0.61.0", - "tensorflow >= 2.17.0; python_version < '3.13'", + "tensorflow >= 2.17.0; python_version < '3.14'", "wfdb >= 4.2.0", ] @@ -64,6 +64,7 @@ dev = [ "pytest-cov >= 6.0.0", "ruff >= 0.8.0", "setuptools >= 72.1.0", + "ty>=0.0.13", "types-requests", "types-pyyaml", ]