Skip to content

Commit 775bcde

Browse files
committed
Change mypy options
1 parent c676b78 commit 775bcde

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ jobs:
66
build-test:
77
runs-on: ${{ matrix.os }}
88
strategy:
9-
matrix: os: [windows-latest, ubuntu-latest] python-version: [3.7, 3.8, 3.9]
9+
matrix:
10+
os: [windows-latest, ubuntu-latest]
11+
python-version: [3.7, 3.8, 3.9]
1012
defaults:
1113
run:
1214
shell: bash
@@ -29,13 +31,12 @@ jobs:
2931
- name: Format check with black
3032
run: poetry run black --check .
3133
- name: Typecheck with mypy
32-
run: |
33-
mypy -p baidupcs_py \
34-
--ignore-missing-imports \
35-
--warn-unreachable \
36-
--implicit-optional \
37-
--allow-redefinition \
38-
--disable-error-code abstract
34+
run: poetry run mypy -p baidupcs_py \
35+
--ignore-missing-imports \
36+
--warn-unreachable \
37+
--implicit-optional \
38+
--allow-redefinition \
39+
--disable-error-code abstract
3940
- name: Test with pytest
4041
run: |
4142
poetry run python build.py build_ext --inplace

0 commit comments

Comments
 (0)