fix: whitespace #102
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: Format Backend | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| jobs: | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.x" | |
| - name: Create venv and install ruff | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m venv .venv | |
| # Use the venv python explicitly for subsequent installs | |
| .venv/bin/python -m pip install --upgrade pip | |
| .venv/bin/python -m pip install ruff | |
| - name: Check imports + format (via venv python, non-modifying) | |
| run: | | |
| # Run ruff; it will read configuration from pyproject.toml by default. | |
| # Avoid using flags that are not supported by older Ruff releases. | |
| .venv/bin/python -m ruff check | |
| .venv/bin/python -m ruff format --check |