Commit 9542923 1 parent bdf505e commit 9542923 Copy full SHA for 9542923
File tree 1 file changed +9
-14
lines changed
1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : Linting
2
+
2
3
on :
3
4
push :
4
5
branches : ["main"]
5
6
pull_request :
6
7
branches : ["main"]
8
+
7
9
jobs :
8
10
lint :
9
11
runs-on : ubuntu-latest
10
- strategy :
11
- fail-fast : false
12
- matrix :
13
- python-version : ["3.11"]
14
12
steps :
15
13
- uses : actions/checkout@v4
16
- - name : Setup PDM
17
- uses : pdm-project/setup-pdm@v3
14
+ - uses : actions/setup-python@v5
18
15
with :
19
- python-version : ${{ matrix.python-version }}
16
+ python-version : " 3.11 "
20
17
- name : Install dependencies
21
- run : |
22
- cd back
23
- pdm install --dev
18
+ run : pip install black ruff pyright
24
19
- name : Check formatting
25
20
run : |
26
21
cd back
27
- pdm run black --check src
28
- pdm run black --check tests
22
+ black --check src
23
+ black --check tests
29
24
- name : Check typing
30
25
run : |
31
26
cd back
32
- pdm run pyright src
27
+ pyright src
33
28
- name : Check for overall code issues
34
29
run : |
35
30
cd back
36
- pdm run ruff src
31
+ ruff src
You can’t perform that action at this time.
0 commit comments