Use ruff rather than black and isort for linting #138
Workflow file for this run
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: Lintcheck Python | |
| on: | |
| push: | |
| branches: [main] | |
| paths: ['**.py'] | |
| pull_request: | |
| paths: ['**.py'] | |
| jobs: | |
| check_python: | |
| name: Check Python linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install the latest version of uv. | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: "3.13" | |
| - uses: actions/checkout@v4 | |
| - run: uv sync | |
| - run: uv run ruff format --check --diff . | |
| - run: uv run ruff check |