Skip to content
Merged
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
16 changes: 15 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions s/lint
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ fi

# type check code
./.venv/bin/mypy tests
./.venv/bin/ty check tests typings
Loading