File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
3131 - name : Format check with black
3232 run : poetry run black --check .
33- - name : Typecheck with mypy
34- run : poetry run mypy -p baidupcs_py --ignore-missing-imports --warn-unreachable --implicit-optional --allow-redefinition --disable-error-code abstract
33+ - name : Typecheck with mypy at Windows
34+ - if : matrix.os == 'windows-latest'
35+ run : poetry run mypy -p baidupcs_py --ignore-missing-imports --warn-unreachable --implicit-optional --allow-redefinition --disable-error-code abstract annotation-unchecked
36+ - name : Typecheck with mypy at Linux
37+ - if : matrix.os == 'ubuntu-latest'
38+ run : poetry run mypy -p baidupcs_py --ignore-missing-imports --warn-unreachable --implicit-optional --allow-redefinition --disable-error-code abstract
3539 - name : Test with pytest
3640 run : |
3741 poetry run python build.py build_ext --inplace
Original file line number Diff line number Diff line change 99
1010# Windows
1111if os .name == "nt" :
12- # type: ignore
1312 import msvcrt
1413
1514# Posix (Linux, OS X)
You can’t perform that action at this time.
0 commit comments