Skip to content

Commit 8d5a25e

Browse files
Update main.yml
1 parent 37e674b commit 8d5a25e

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
- name: Ruff Check
2-
# You may pin to the exact commit or the version.
3-
# uses: jpetrucciani/ruff-check@95ff5ea372c5099efb7a38151f8aef8fee435c47
4-
uses: jpetrucciani/[email protected]
5-
with:
6-
# File or directory to run ruff on
7-
path: # optional, default is .
8-
# Optional ruff flags (refer to `ruff --help`)
9-
flags: # optional, default is
10-
# Format to output ruff messages in
11-
format: # optional, default is github
12-
1+
name: Ruff Lint
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
ruff-lint:
10+
name: Ruff Check
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Run Ruff
18+
uses: chartboost/ruff-action@v1
19+
with:
20+
args: .

0 commit comments

Comments
 (0)