Skip to content

Commit

Permalink
Fix mypy tests options with Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
brunato committed May 16, 2022
1 parent 6b44038 commit c2bd525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-elementpath.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
if: ${{ matrix.python-version == '3.7' }}
run: |
pip install mypy==0.950
mypy --show-error-codes --no-warn-redundant-casts --no-warn-unused-ignores --strict elementpath
mypy --show-error-codes --no-warn-redundant-casts --no-warn-unused-ignores --no-warn-return-any --strict elementpath
- name: Test with unittest
run: |
pip install lxml xmlschema>=1.9.0
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ commands =
deps =
mypy==0.950
commands =
mypy --config-file {toxinidir}/mypy.ini elementpath
mypy --show-error-codes --no-warn-redundant-casts --no-warn-unused-ignores --no-warn-return-any --strict elementpath
python tests/test_typing.py

[testenv:mypy-py{38,39,310}]
deps =
mypy==0.950
commands =
mypy --config-file {toxinidir}/mypy.ini --strict elementpath
mypy --no-warn-return-any --strict elementpath
python tests/test_typing.py

[testenv:coverage]
Expand Down

0 comments on commit c2bd525

Please sign in to comment.