Skip to content

Merge pull request #29 from a5chin/feature/pre-commit #75

Merge pull request #29 from a5chin/feature/pre-commit

Merge pull request #29 from a5chin/feature/pre-commit #75

Workflow file for this run

name: Ruff
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} with Rye
uses: ./.github/actions/setup-python-with-rye
with:
python-version: ${{ matrix.python-version }}
- name: Lint
run: rye run ruff check --output-format=github .
format:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} with Rye
uses: ./.github/actions/setup-python-with-rye
with:
python-version: ${{ matrix.python-version }}
- name: Format
run: rye run ruff format . --check --diff