Skip to content

Commit 71d6faf

Browse files
committed
chore: replaced ruff with pre-commit github action
1 parent bc8ac1b commit 71d6faf

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

.github/workflows/pre-commit.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pre-commit:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
with:
12+
fetch-depth: 0
13+
14+
- uses: actions/setup-python@v6
15+
16+
- uses: pre-commit/action@v3.0.1
17+
with:
18+
# only run on files changed in this PR
19+
extra_args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}

.github/workflows/ruff.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)