Skip to content

Commit 9542923

Browse files
committed
Better lint workflow
1 parent bdf505e commit 9542923

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/lint.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,31 @@
11
name: Linting
2+
23
on:
34
push:
45
branches: ["main"]
56
pull_request:
67
branches: ["main"]
8+
79
jobs:
810
lint:
911
runs-on: ubuntu-latest
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
python-version: ["3.11"]
1412
steps:
1513
- uses: actions/checkout@v4
16-
- name: Setup PDM
17-
uses: pdm-project/setup-pdm@v3
14+
- uses: actions/setup-python@v5
1815
with:
19-
python-version: ${{ matrix.python-version }}
16+
python-version: "3.11"
2017
- name: Install dependencies
21-
run: |
22-
cd back
23-
pdm install --dev
18+
run: pip install black ruff pyright
2419
- name: Check formatting
2520
run: |
2621
cd back
27-
pdm run black --check src
28-
pdm run black --check tests
22+
black --check src
23+
black --check tests
2924
- name: Check typing
3025
run: |
3126
cd back
32-
pdm run pyright src
27+
pyright src
3328
- name: Check for overall code issues
3429
run: |
3530
cd back
36-
pdm run ruff src
31+
ruff src

0 commit comments

Comments
 (0)