Files
poli0981andClaude Opus 5.5 40b17e620d ci(sonar): analyse in GitHub Actions with test coverage (#157)
SonarQube Cloud analyses in GitHub Actions instead of Automatic
Analysis, with test coverage (sonarcloud.yml): token (skips Dependabot
and fork PRs, which get no SONAR_TOKEN) → coverage (pytest-cov and
Vitest v8, no secrets) → scan (sonarqube-scan-action v8.3.0, full
history, sonar.projectVersion from webapp/package.json).

sonar-project.properties replaces .sonarcloud.properties: tests marked
as tests, coverage exclusions for code without unit tests by design,
Python 3.14 (the analyzer has no 3.15 yet), binary images and the
SQLite migrations (claimed by the PL/SQL analyzer, which only warned)
left out.
Adds pytest-cov / coverage (dev lock recompiled on Python 3.14) and
@vitest/coverage-v8 (Dependabot group with vitest). Docs: CLAUDE.md
gotcha 41, THIRD_PARTY, dev_env, CONTRIBUTING (EN + VI).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:30:20 +07:00

14 lines
571 B
Plaintext

# Lint and test tools on top of the runtime pins (`-c`). requirements-dev.txt is
# the hash-locked compile of this file; regenerate it after an edit (CLAUDE.md, gotcha 40):
# pip-compile --generate-hashes --allow-unsafe --strip-extras requirements-dev.in
-c requirements.txt
-r requirements.in
ruff>=0.17.1
pytest>=9.1.1
# `pytest --cov`: coverage.xml for SonarQube Cloud (.github/workflows/sonarcloud.yml).
pytest-cov>=7.1.0
vulture>=2.16
pillow>=13.0.0
# pytest needs it on Windows only; listed so a lock compiled on Linux (Dependabot) still installs there.
colorama