Add report verification tool (#7) #32
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: Lint | |
| on: | |
| push: | |
| branches: ["**"] | |
| paths: | |
| - '**.py' | |
| - 'requirements.txt' | |
| - '.github/workflows/lint.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - '**.py' | |
| - 'requirements.txt' | |
| - '.github/workflows/lint.yml' | |
| jobs: | |
| lint: | |
| name: Code Quality Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff mypy black | |
| pip install -r requirements.txt | |
| - name: Run Ruff (linting) | |
| run: | | |
| ruff check . --output-format=github | |
| continue-on-error: true | |
| - name: Run Black (formatting check) | |
| run: | | |
| black --check . | |
| continue-on-error: true | |
| - name: Run mypy (type checking) | |
| run: | | |
| mypy . --ignore-missing-imports --no-strict-optional | |
| continue-on-error: true | |
| - name: Summary | |
| if: always() | |
| run: | | |
| echo "✅ Lint checks complete. Review warnings above." | |
| echo "Note: Failures are non-blocking but should be addressed." |