feat: add demo_config.py #2
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: Ruff and Mypy Checks | |
| on: | |
| push: # Triggers on all branches | |
| pull_request: # Triggers on all PRs | |
| jobs: | |
| lint: | |
| name: Run Ruff and Mypy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install uv | |
| uv sync --group lint | |
| - name: Run Ruff | |
| run: | | |
| uv run --frozen python -m ruff check | |
| - name: Run Mypy | |
| run: | | |
| uv run --frozen python -m mypy |