code quality updates #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test-and-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: uv sync --all-groups | |
| - name: Ruff (Checking lint, imports, complexity, and commented-out code) | |
| run: uv run ruff check . | |
| - name: Black (Checking code formatting) | |
| run: uv run black --check . | |
| - name: Interrogate (Checking docstring coverage) | |
| run: uv run interrogate app | |
| - name: Vulture (Checking unused/dead production code) | |
| run: uv run vulture app scripts --min-confidence 70 | |
| - name: Thin endpoint lint (Checking endpoint-layer boundaries) | |
| run: uv run python scripts/lint_thin_endpoints.py | |
| - name: Pytest (Checking unit and integration tests) | |
| run: uv run pytest -q |