Add invoke as task runner, ruff and fix mypy errors

This commit is contained in:
2026-02-22 18:33:59 +03:00
parent 527ca62cb2
commit d6be9fbfb8
9 changed files with 187 additions and 17 deletions

View File

@@ -11,12 +11,16 @@ pre-commit:
- name: "format python"
glob: "**/*.py"
run: "black --quiet {staged_files}"
run: "uv run ruff format {staged_files}"
stage_fixed: true
- name: "check python"
glob: "**/*.py"
run: "uv run ruff check {staged_files}"
- name: "mypy"
glob: "**/*.py"
run: "mypy {staged_files}"
run: "uv run mypy {staged_files}"
- name: "yamllint"
glob: "**/*.{yml,yaml}"