mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 12:05:07 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user