-
Notifications
You must be signed in to change notification settings - Fork 533
31 lines (28 loc) · 817 Bytes
/
format.yml
File metadata and controls
31 lines (28 loc) · 817 Bytes
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
name: Ruff Code Formatter and Linting Check
"on":
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: read
checks: write
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.13"
- name: Ruff Format Check
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0
with:
version: 0.14.0
args: "format --check"
- name: Ruff Lint Check
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0
with:
version: 0.14.0
args: "check"