fail ruff format on modification #106
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: QA | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| check-qa: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version-file: pyproject.toml | ||
| architecture: x64 | ||
| - name: Install dependencies (and project) | ||
| run: | | ||
| pip install -U pip | ||
| pip install -e .[lint,scripts,test,check] | ||
| - name: Check ruff | ||
| run: inv fix-ruff --args '--check' | ||
| run: inv lint-ruff | ||
| - name: Check pyright | ||
| run: inv check-pyright | ||