Commit 5f04873f authored by Laurent Peuch's avatar Laurent Peuch
Browse files

test: integrate mypy into tox.ini and gitlab-ci

parent 622a40c8836d
Pipeline #9154 failed with stages
in 1 minute and 4 seconds
...@@ -27,6 +27,10 @@ flake8: ...@@ -27,6 +27,10 @@ flake8:
stage: tests stage: tests
script: tox -e flake8 script: tox -e flake8
mypy:
stage: tests
script: tox -e mypy
trigger-other-pipelines: trigger-other-pipelines:
only: only:
refs: refs:
......
[tox] [tox]
envlist=py3,check-manifest,black envlist=py3,check-manifest,black,mypy
[testenv] [testenv]
deps = deps =
...@@ -53,3 +53,8 @@ format = pylint ...@@ -53,3 +53,8 @@ format = pylint
ignore = W503, E203, E731, E231 ignore = W503, E203, E731, E231
max-line-length = 100 max-line-length = 100
exclude = docs/*,.tox/* exclude = docs/*,.tox/*
[testenv:mypy]
deps =
mypy >= 0.761
commands = mypy --ignore-missing-imports logilab/mtconverter/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment