refactor(server): adopt uv and modular typed FastAPI structure
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
minimum_pre_commit_version: "4.4.0"
|
||||
default_install_hook_types: [pre-commit]
|
||||
default_stages: [pre-commit]
|
||||
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: ruff-check
|
||||
name: Ruff lint
|
||||
entry: uv run --locked ruff check --force-exclude
|
||||
language: unsupported
|
||||
types_or: [python, pyi]
|
||||
require_serial: true
|
||||
- id: ruff-format
|
||||
name: Ruff formatting
|
||||
entry: uv run --locked ruff format --check --force-exclude
|
||||
language: unsupported
|
||||
types_or: [python, pyi]
|
||||
require_serial: true
|
||||
- id: mypy
|
||||
name: Python types
|
||||
entry: uv run --locked mypy
|
||||
language: unsupported
|
||||
pass_filenames: false
|
||||
files: ^(s2s_client/|s2s-client/server\.py|pyproject\.toml|uv\.lock)
|
||||
Reference in New Issue
Block a user