Add invoke as task runner, ruff and fix mypy errors
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user