ci: block on mypy and bandit and run hooks from the lock

Pre-commit runs ruff, isort and bandit through uv run, so it uses the versions in uv.lock. Bandit moves from runtime dependencies to the dev group.
This commit is contained in:
imSp4rky
2026-11-01 19:32:34 -07:00
parent a58da3f5d3
commit 2bbb2d65b8
4 changed files with 34 additions and 24 deletions
+7 -2
View File
@@ -36,10 +36,15 @@ jobs:
- name: Import order
run: uv run isort --check-only unshackle tests --skip-glob "*/services/*"
- name: Type check
if: ${{ !cancelled() }}
run: |
out=$(uv run mypy unshackle) || true
out=$(uv run mypy unshackle) || rc=$?
echo "$out"
echo "$out" | sed -nE 's/^([^:]+):([0-9]+): error: (.*)$/::warning file=\1,line=\2::\3/p'
echo "$out" | sed -nE 's/^([^:]+):([0-9]+): error: (.*)$/::error file=\1,line=\2::\3/p'
exit ${rc:-0}
- name: Security lint
if: ${{ !cancelled() }}
run: uv run bandit -q -c pyproject.toml -r unshackle --severity-level medium --confidence-level medium
test:
strategy: