Skip to content

Commit c4a63f2

Browse files
committed
Use prek in the CI instead of individual checks
Signed-off-by: Vincent Michel <vincent.michel@vates.tech>
1 parent 488cbdc commit c4a63f2

1 file changed

Lines changed: 5 additions & 37 deletions

File tree

.github/workflows/code-checkers.yml

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ on: [push]
55
permissions: {}
66

77
jobs:
8-
mypy:
8+
prek:
99
runs-on: ubuntu-latest
10+
env:
11+
FORCE_COLOR: "1"
12+
PREK_COLOR: "always"
1013
steps:
1114
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1215
with:
@@ -16,39 +19,4 @@ jobs:
1619
run: cp data.py-dist data.py
1720
- name: Create a dummy vm_data.py
1821
run: cp vm_data.py-dist vm_data.py
19-
- run: mypy --install-types --non-interactive .
20-
21-
pyright:
22-
runs-on: ubuntu-latest
23-
steps:
24-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25-
with:
26-
persist-credentials: false
27-
- uses: ./.github/actions/uv-setup/
28-
- name: Create a dummy data.py
29-
run: cp data.py-dist data.py
30-
- name: Create a dummy vm_data.py
31-
run: cp vm_data.py-dist vm_data.py
32-
- run: pyright .
33-
34-
ruff:
35-
runs-on: ubuntu-latest
36-
env:
37-
FORCE_COLOR: "1"
38-
steps:
39-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
40-
with:
41-
persist-credentials: false
42-
- uses: ./.github/actions/uv-setup/
43-
- name: Create a dummy data.py
44-
run: cp data.py-dist data.py
45-
- run: ruff check
46-
47-
flake8:
48-
runs-on: ubuntu-latest
49-
steps:
50-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
51-
with:
52-
persist-credentials: false
53-
- uses: ./.github/actions/uv-setup/
54-
- run: flake8
22+
- run: prek run -a

0 commit comments

Comments
 (0)