29 lines
779 B
YAML
29 lines
779 B
YAML
name: lint
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'AUTHORS'
|
|
|
|
jobs:
|
|
linters:
|
|
name: Linters
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
# remember to sync the ruff-check version number with pyproject.toml
|
|
- name: Run ruff check
|
|
uses: astral-sh/ruff-action@c6bea5606c33b5d04902374392d9233464b90660 # v3.3.0
|
|
with:
|
|
version: 0.11.5
|
|
|
|
# remember to sync the ruff-check version number with pyproject.toml
|
|
- name: Run ruff format
|
|
uses: astral-sh/ruff-action@c6bea5606c33b5d04902374392d9233464b90660 # v3.3.0
|
|
with:
|
|
version: 0.11.5
|
|
args: 'format --check'
|