Skip to content

Commit 39332d3

Browse files
--no-warn-unused-ignores for mypy in Github CI.
1 parent 8c9f1c9 commit 39332d3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: .github/workflows/test.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ jobs:
3232
# Check wheather the imports were sorted correctly.
3333
# When this fails, please run ./tools/sort-imports.sh
3434
run: |
35-
mypy --strict src/prompt_toolkit --platform win32
36-
mypy --strict src/prompt_toolkit --platform linux
37-
mypy --strict src/prompt_toolkit --platform darwin
35+
# We use --no-warn-usused-ignores, because on Python 3.6 there is one
36+
# type:ignore that we don't need.
37+
mypy --strict --no-warn-unused-ignores src/prompt_toolkit --platform win32
38+
mypy --strict --no-warn-unused-ignores src/prompt_toolkit --platform linux
39+
mypy --strict --no-warn-unused-ignores src/prompt_toolkit --platform darwin
3840
isort -c --profile black src examples tests setup.py
3941
black --check src examples tests setup.py
4042
- name: Validate README.md

Diff for: mypy.ini

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ strict_optional = True
1515
warn_redundant_casts = True
1616
warn_return_any = True
1717
warn_unused_configs = True
18-
19-
# We have a 'type:ignore' that's not needed on Python 3.6.
20-
warn_unused_ignores = False
18+
warn_unused_ignores = True

0 commit comments

Comments
 (0)