mirror of
https://github.com/turnstonelabs/turnstone.git
synced 2026-08-12 23:12:23 -06:00
c39affbf6b
* Add test coverage reporting and pre-commit hooks - Add pytest-cov to test dependencies, configure coverage in pyproject.toml (branch coverage, static asset omission, standard exclusion patterns) - CI test job now runs with --cov and uploads coverage XML as artifact - Add .pre-commit-config.yaml with ruff (check + format) and mypy hooks Baseline coverage: 41% (482 tests, Python 3.13) * Fix Copilot review: add redis dep for pre-commit mypy, explicit --cov target - Add redis>=7.2 to mypy pre-commit hook additional_dependencies so mypy can resolve redis imports in isolated pre-commit environments - Use --cov=turnstone instead of bare --cov to explicitly scope coverage
17 lines
422 B
YAML
17 lines
422 B
YAML
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.9.10
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix]
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.14.1
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies: [types-redis>=4.6, redis>=7.2]
|
|
args: [--config-file=pyproject.toml]
|
|
pass_filenames: false
|
|
entry: mypy turnstone/
|