mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-07-03 16:31:23 +02:00
9664d4ee76
Pin starlette<1.0.0 to avoid TemplateResponse breaking change, update the TemplateResponse call to new-style request-first signature, and bump Python version to 3.14 across Dockerfile, pyproject.toml, and pre-commit hooks.
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
default_language_version:
|
|
python: python3
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
- id: check-toml
|
|
- id: debug-statements
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 26.1.0
|
|
hooks:
|
|
- id: black
|
|
args: ["--line-length=88"]
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: flake8
|
|
args: ["--config=.flake8"]
|
|
additional_dependencies:
|
|
- flake8-bugbear
|
|
- flake8-comprehensions
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.9.0
|
|
hooks:
|
|
- id: mypy
|
|
exclude: ^alembic/
|
|
additional_dependencies:
|
|
- pydantic>=2.0.0
|
|
- pydantic-settings>=2.0.0
|
|
- sqlalchemy>=2.0.0
|
|
- fastapi>=0.100.0
|
|
- alembic>=1.7.0
|
|
- types-paho-mqtt>=1.6.0
|
|
- types-PyYAML>=6.0.0
|