-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (29 loc) · 938 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: "Lint"
on:
push:
pull_request:
permissions:
contents: write
jobs:
ruff:
name: "Ruff"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4.2.2
- name: "Set up Python"
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.12.4"
- name: "Install requirements"
run: |
python -m pip install --upgrade pip
pip install ruff
- name: "Format"
run: ruff format .
- name: "Check"
run: ruff check --output-format=github . --fix
- name: "Auto Commit"
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
with:
commit_message: 'style fixes by ruff'