@@ -3,7 +3,6 @@ name: Linter
3
3
on : [push]
4
4
5
5
jobs :
6
-
7
6
black :
8
7
runs-on : ubuntu-22.04
9
8
steps :
@@ -21,13 +20,13 @@ jobs:
21
20
uses : actions/setup-python@v4
22
21
with :
23
22
python-version : " 3.10"
24
- cache : ' pip' # caching pip dependencies
23
+ cache : " pip" # caching pip dependencies
25
24
- name : Install dependencies
26
25
run : |
27
26
python -m pip install --upgrade pip
28
27
pip install .[dev]
29
- - name : Check import order
30
- run : isort . -c
28
+ - name : Check import order
29
+ run : isort . -c
31
30
32
31
flake8 :
33
32
runs-on : ubuntu-22.04
37
36
uses : actions/setup-python@v4
38
37
with :
39
38
python-version : " 3.10"
40
- cache : ' pip' # caching pip dependencies
39
+ cache : " pip" # caching pip dependencies
41
40
- name : Install dependencies
42
41
run : |
43
42
python -m pip install --upgrade pip
47
46
# stop the build if there are Python syntax errors or undefined names
48
47
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
49
48
# option --exit-zero can be added to this line to set these errors as warnings
50
- flake8 . --count --statistics --config setup.cfg
49
+ flake8 . --count --statistics
51
50
52
51
mypy :
53
52
runs-on : ubuntu-22.04
@@ -57,10 +56,10 @@ jobs:
57
56
uses : actions/setup-python@v4
58
57
with :
59
58
python-version : " 3.10"
60
- cache : ' pip' # caching pip dependencies
59
+ cache : " pip" # caching pip dependencies
61
60
- name : Install dependencies
62
61
run : |
63
62
python -m pip install --upgrade pip
64
63
pip install .[dev]
65
- - name : Lint with mypy
66
- run : mypy . -v
64
+ - name : Lint with mypy
65
+ run : mypy . -v
0 commit comments