Skip to content

Commit 9062f12

Browse files
committed
chore: replaced ruff with pre-commit github action
1 parent cd54297 commit 9062f12

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
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.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ repos:
5252
- id: ruff-format
5353

5454
- repo: https://github.com/igorshubovych/markdownlint-cli
55-
rev: v0.47.0
55+
rev: v0.44.0
5656
hooks:
5757
- id: markdownlint
5858
args: [ "--config", ".markdownlint.yaml" ]

0 commit comments

Comments
 (0)