diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04b70ea..ab53526 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,21 @@ repos: hooks: - id: basedpyright name: basedpyright check - entry: uv run basedpyright + entry: uv run basedpyright typings tests + language: system + types_or: [python, pyi] + pass_filenames: false + require_serial: true + - id: ty + name: ty check + entry: uv run ty check typings tests + language: system + types_or: [python, pyi] + pass_filenames: false + require_serial: true + - id: mypy + name: mypy check + entry: uv run mypy tests language: system types_or: [python, pyi] pass_filenames: false diff --git a/README.md b/README.md index 96a7a2e..362cf15 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ uv run ruff check --fix uv run ruff format uv run basedpyright typings tests uv run mypy tests +uv run ty typings tests ``` ```shell # build and publish @@ -101,6 +102,7 @@ uv run prek run --all-files - [ruff](https://docs.astral.sh/ruff/) — formatting and linting - [basedpyright](https://docs.basedpyright.com/) — type checking - [mypy](https://mypy.readthedocs.io/) — type checking +- [ty](https://docs.astral.sh/ty/) — type checking ## related diff --git a/s/lint b/s/lint index c300a4f..feb33d5 100755 --- a/s/lint +++ b/s/lint @@ -15,3 +15,4 @@ fi # type check code ./.venv/bin/mypy tests +./.venv/bin/ty check tests typings