Skip to content

Commit c676b78

Browse files
committed
Change mypy options
1 parent 2b1e774 commit c676b78

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ jobs:
66
build-test:
77
runs-on: ${{ matrix.os }}
88
strategy:
9-
matrix:
10-
os: [windows-latest, ubuntu-latest]
11-
python-version: [3.7, 3.8, 3.9]
9+
matrix: os: [windows-latest, ubuntu-latest] python-version: [3.7, 3.8, 3.9]
1210
defaults:
1311
run:
1412
shell: bash
@@ -31,7 +29,13 @@ jobs:
3129
- name: Format check with black
3230
run: poetry run black --check .
3331
- name: Typecheck with mypy
34-
run: poetry run mypy -p baidupcs_py --ignore-missing-imports --warn-unreachable
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
3539
- name: Test with pytest
3640
run: |
3741
poetry run python build.py build_ext --inplace

0 commit comments

Comments
 (0)