Skip to content

Commit

Permalink
--no-warn-unused-ignores for mypy in Github CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanslenders committed Jun 1, 2022
1 parent 8c9f1c9 commit 39332d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ jobs:
# Check wheather the imports were sorted correctly.
# When this fails, please run ./tools/sort-imports.sh
run: |
mypy --strict src/prompt_toolkit --platform win32
mypy --strict src/prompt_toolkit --platform linux
mypy --strict src/prompt_toolkit --platform darwin
# We use --no-warn-usused-ignores, because on Python 3.6 there is one
# type:ignore that we don't need.
mypy --strict --no-warn-unused-ignores src/prompt_toolkit --platform win32
mypy --strict --no-warn-unused-ignores src/prompt_toolkit --platform linux
mypy --strict --no-warn-unused-ignores src/prompt_toolkit --platform darwin
isort -c --profile black src examples tests setup.py
black --check src examples tests setup.py
- name: Validate README.md
Expand Down
4 changes: 1 addition & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ strict_optional = True
warn_redundant_casts = True
warn_return_any = True
warn_unused_configs = True

# We have a 'type:ignore' that's not needed on Python 3.6.
warn_unused_ignores = False
warn_unused_ignores = True

0 comments on commit 39332d3

Please sign in to comment.