Closed
Description
When mypy
fails with an error, pytest --mypy
still succeeds, when setup.cfg contains ignore_missing_imports = true
. Should fail.
When setup.cfg does not contain ignore_missing_imports = true
, process fails for me (as it should).
$ py.test --mypy -m mypy
=================================================================== test session starts ===================================================================
platform darwin -- Python 3.7.3, pytest-5.3.1, py-1.8.0, pluggy-0.13.1
rootdir: /Users/tkruse/work/myapp, inifile: setup.cfg, testpaths: test
plugins: pylint-0.14.1, mypy-0.4.2, cov-2.8.1
Running mypy on 6 files... done with status 1
...
error: Argument 1... has incompatible type "str"; expected "List[str]"
...
Found 2 errors in 1 file (checked 6 source files)
=========== 6 passed, 20 deselected, 4 warnings in 1.31s
$ echo $?
0
mypy output:
$ mypy myapp --ignore-missing-imports
...
Found 2 errors in 1 file (checked 13 source files)
$ echo $?
1
Metadata
Metadata
Assignees
Labels
No labels