Enable mypy for DB and fix types (#19434)

* Install peewee type hints

* Models now have proper types

* Fix iterator type

* Enable debug builds with dev reqs installed

* Install as wheel

* Fix cast type
This commit is contained in:
Nicolas Mowen
2025-08-08 11:25:39 -06:00
committed by Blake Blackshear
parent 6ecc631486
commit 7c1681e344
7 changed files with 31 additions and 16 deletions

View File

@@ -107,7 +107,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
run: make
run: make debug
- name: Run mypy
run: docker run --rm --entrypoint=python3 frigate:latest -u -m mypy --config-file frigate/mypy.ini frigate
- name: Run tests