lint: replace no-op flake8 script with gating ruff check, fix findings
CI / skip-ci-check (push) Successful in 18s
CI / python-lint (push) Failing after 19s
CI / docker-ci (push) Successful in 21s
CI / secret-scan (push) Successful in 30s
CI / skip-ci-check (pull_request) Successful in 27s
CI / python-lint (pull_request) Failing after 21s
CI / docker-ci (pull_request) Successful in 22s
CI / admin-unit (push) Successful in 44s
CI / secret-scan (pull_request) Successful in 45s
CI / admin-unit (pull_request) Successful in 55s
CI / viewer-unit (push) Successful in 1m54s
CI / viewer-unit (pull_request) Successful in 1m45s
CI / e2e (push) Failing after 6m5s
CI / e2e (pull_request) Successful in 6m43s

This commit is contained in:
2026-07-26 16:01:28 -04:00
parent abb7b34700
commit fc3960afa9
32 changed files with 218 additions and 218 deletions
+15
View File
@@ -71,6 +71,21 @@ jobs:
docker run --rm -v "$PWD:/repo" ghcr.io/gitleaks/gitleaks:latest \
detect --source /repo --no-banner --redact ${extra}
# Ruff lint on the FastAPI backend (config in ruff.toml). Replaces the old
# flake8 `|| true` npm script that never actually gated anything.
python-lint:
needs: skip-ci-check
if: needs.skip-ci-check.outputs.should-skip != '1'
runs-on: [homelab, self-hosted, linux]
container:
image: python:3.12-bookworm
steps:
- uses: actions/checkout@v4
- name: Install ruff
run: pip install "ruff==0.16.0"
- name: Ruff check
run: ruff check backend
# Vitest unit tests (viewer-frontend) — landed in PR #63, wired here.
viewer-unit:
needs: skip-ci-check