Add the "test-types" session as a pre-commit hook
This commit is contained in:
parent
2f313e7e3a
commit
f47c87f51f
2 changed files with 10 additions and 1 deletions
|
|
@ -87,4 +87,4 @@ jobs:
|
||||||
- name: Run the `pre-commit` hooks not covered by `nox`
|
- name: Run the `pre-commit` hooks not covered by `nox`
|
||||||
run: uv run pre-commit run --all-files --show-diff-on-failure
|
run: uv run pre-commit run --all-files --show-diff-on-failure
|
||||||
env:
|
env:
|
||||||
SKIP: local-format,local-lint,local-test,local-doctest,no-commit-to-branch
|
SKIP: local-format,local-lint,local-test,local-doctest,local-test-types,no-commit-to-branch
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,15 @@ repos:
|
||||||
always_run: true
|
always_run: true
|
||||||
require_serial: true
|
require_serial: true
|
||||||
|
|
||||||
|
- id: local-test-types
|
||||||
|
name: Check the type annotations at runtime
|
||||||
|
entry: uv run nox -s test-types
|
||||||
|
language: unsupported
|
||||||
|
stages: [pre-merge-commit]
|
||||||
|
pass_filenames: false # => No `--` at the end of the "entry"
|
||||||
|
always_run: true
|
||||||
|
require_serial: true
|
||||||
|
|
||||||
# Keep requirements.txt in sync with uv.lock
|
# Keep requirements.txt in sync with uv.lock
|
||||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||||
rev: 0.13.10
|
rev: 0.13.10
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue