I added a type check to my cloudbuild pipeline but the steps fails. how to make it pass even with errors detected by mypy ? or maybe set a threshold like in pylint with the option fail-under?
The step looks like this:
Check type hints
- id: 'type-check'
name: ${_TEST_IMAGE}
waitFor: ["linter"]
dir: "${_PYTHON_}"
entrypoint: 'mypy'
args:
- "--config-file=mypy.ini"
- "--ignore-missing-imports"
- "./mycode_folder"
here is the result:
Step #3 - "type-check": Found 57 errors in 13 files (checked 53 source files)
Finished Step #3 - "type-check"
ERROR
ERROR: build step 3 failed: step exited with non-zero status: 1