Skip to content

Commit 1b9c216

Browse files
committed
chore(global): Fix pre-commit
1 parent 2a2a232 commit 1b9c216

File tree

2 files changed

+23
-26
lines changed

2 files changed

+23
-26
lines changed

.github/workflows/pre-commit.yml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,24 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v5
16-
17-
- name: Set up Prek
18-
uses: j178/prek-action@v1
19-
20-
- name: Install Bun
21-
uses: oven-sh/setup-bun@v2
22-
with:
23-
bun-version: latest
24-
25-
- name: Install frontend dependencies
26-
working-directory: ./app_web
27-
run: bun install
28-
29-
- name: Cache prek hooks
30-
uses: actions/cache@v4
31-
with:
32-
path: ~/.cache/prek
33-
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
34-
restore-keys: |
35-
pre-commit-
36-
37-
- name: Run prek
38-
run: prek run --all-files
15+
- uses: actions/checkout@v5
16+
17+
- name: Install Bun
18+
uses: oven-sh/setup-bun@v2
19+
with:
20+
bun-version: latest
21+
22+
- name: Install frontend dependencies
23+
working-directory: ./app_web
24+
run: bun install
25+
26+
- name: Cache prek hooks
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/.cache/prek
30+
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
31+
restore-keys: |
32+
pre-commit-
33+
34+
- name: Set up and run Prek
35+
uses: j178/prek-action@v1

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
- id: end-of-file-fixer
99
- id: trailing-whitespace
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.14.3
11+
rev: v0.14.7
1212
hooks:
1313
- id: ruff-format
1414
files: ^app_api/
@@ -17,7 +17,7 @@ repos:
1717
files: ^app_api/
1818
args: [ --fix, --select, I, F401, app_api ]
1919
- repo: https://github.com/pre-commit/mirrors-eslint
20-
rev: v9.38.0
20+
rev: v9.39.1
2121
hooks:
2222
- id: eslint
2323
files: ^app_web/

0 commit comments

Comments
 (0)