@@ -32,10 +32,11 @@ jobs:
32
32
python-version : ${{ env.LINTING_PYTHON_VERSION }}
33
33
cache : ' pip'
34
34
cache-dependency-path : ' pyproject.toml'
35
- - name : Install with type-checking tools, stubs & minimal test libraries
36
- run : pip install .[typing,testing_minimal]
37
- - name : Run mypy
38
- run : ./tools/run-mypy
35
+ - name : Lint
36
+ run : |
37
+ make
38
+ . zt_venv/bin/activate
39
+ ./tools/run-mypy
39
40
40
41
ruff :
41
42
runs-on : ubuntu-latest
@@ -49,10 +50,11 @@ jobs:
49
50
python-version : ${{ env.LINTING_PYTHON_VERSION }}
50
51
cache : ' pip'
51
52
cache-dependency-path : ' pyproject.toml'
52
- - name : Install with linting tools
53
- run : pip install .[linting]
54
- - name : Run ruff
55
- run : ruff zulipterminal/ tests/ `tools/python_tools.py`
53
+ - name : Lint
54
+ run : |
55
+ make
56
+ . zt_venv/bin/activate
57
+ ruff zulipterminal/ tests/ `tools/python_tools.py`
56
58
57
59
isort :
58
60
runs-on : ubuntu-latest
@@ -66,11 +68,12 @@ jobs:
66
68
python-version : ${{ env.LINTING_PYTHON_VERSION }}
67
69
cache : ' pip'
68
70
cache-dependency-path : ' pyproject.toml'
69
- - name : Install with linting tools & minimal test libraries
70
71
# NOTE: Install pytest so that isort recognizes it as a known library
71
- run : pip install .[linting,minimal_testing]
72
- - name : Run isort
73
- run : ./tools/run-isort-check
72
+ - name : Lint
73
+ run : |
74
+ make
75
+ . zt_venv/bin/activate
76
+ ./tools/run-isort-check
74
77
75
78
black :
76
79
runs-on : ubuntu-latest
@@ -84,10 +87,11 @@ jobs:
84
87
python-version : ${{ env.LINTING_PYTHON_VERSION }}
85
88
cache : ' pip'
86
89
cache-dependency-path : ' pyproject.toml'
87
- - name : Install with linting tools
88
- run : pip install .[linting]
89
- - name : Check code & tests meet black standards
90
- run : black --check zulipterminal/ tests/ `tools/python_tools.py`
90
+ - name : Lint
91
+ run : |
92
+ make
93
+ . zt_venv/bin/activate
94
+ black --check zulipterminal/ tests/ `tools/python_tools.py`
91
95
92
96
spellcheck :
93
97
runs-on : ubuntu-latest
0 commit comments