update readme #147
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: Style | |
| on: | |
| push: | |
| branches: | |
| # Push will only build on branches that match this name | |
| # Pull requests will override this, so pushes to pull requests will still build | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| check-style: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.9 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.9.x" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v2 | |
| - name: Install dependencies | |
| run: | | |
| uv sync --all-extras | |
| - name: Lint with ruff | |
| run: | | |
| uv run pre-commit run --all-files |