root: add mypy (#16904)

* add mypy

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix some stuff

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix more stuff

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* actually do overrides on a per-module basis

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix small stuff

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* add pydantic plugin

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2025-09-22 19:37:49 +02:00
committed by GitHub
parent 1b96009be8
commit 5bfac4c11e
17 changed files with 275 additions and 46 deletions

View File

@@ -1,12 +1,14 @@
#!/usr/bin/env python3
"""Generate config for development"""
from typing import Any
from yaml import safe_dump
from authentik.lib.generators import generate_id
def generate_local_config():
def generate_local_config() -> dict[str, Any]:
"""Generate a local development configuration"""
# TODO: This should be generated and validated against a schema, such as Pydantic.