Skip to content

Commit cd6caf2

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 cd6caf2

1 file changed

Lines changed: 2 additions & 37 deletions

File tree

.github/workflows/code-checkers.yml

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

77
jobs:
8-
mypy:
8+
prek:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -16,39 +16,4 @@ jobs:
1616
run: cp data.py-dist data.py
1717
- name: Create a dummy vm_data.py
1818
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
19+
- run: prek run -a

0 commit comments

Comments
 (0)