File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1515 # Many color libraries just need this to be set to any value, but at least
1616 # one distinguishes color depth, where "3" -> "256-bit color".
1717 FORCE_COLOR : 3
18+ MYPYPATH : ${CI_PROJECT_DIR}/stubs
1819
1920jobs :
2021 lint :
6970
7071 - name : Generate docstub stubs
7172 run : |
72- python -m docstub -v src/docstub
73+ python -m docstub -v src/docstub -o ${MYPYPATH}/docstub
74+
75+ - name : Check docstub stubs with mypy
76+ run : |
77+ python -m mypy.stubtest docstub
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ dev = [
4545test = [
4646 " pytest >=5.0.0" ,
4747 " pytest-cov >= 5.0.0" ,
48+ " mypy" ,
4849]
4950
5051[project .urls ]
@@ -80,6 +81,7 @@ extend-select = [
8081 " UP" , # pyupgrade
8182 " YTT" , # flake8-2020
8283 " EXE" , # flake8-executable
84+ # "PYI", # flake8-pyi
8385]
8486ignore = [
8587 " PLR09" , # Too many <...>
You can’t perform that action at this time.
0 commit comments