[PATCH 02 of 23 yams] [tox] add mypy

Laurent Peuch cortex at worlddomination.be
Fri Feb 14 15:59:52 CET 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1579279651 -3600
#      Fri Jan 17 17:47:31 2020 +0100
# Node ID a136e5120bc9a64cbbaa1d85707ceba3cf47351b
# Parent  4551c89c49a1db15dddbb7202d8e1d0216956c64
# Available At https://hg.logilab.org/users/lpeuch/yams
#              hg pull https://hg.logilab.org/users/lpeuch/yams -r a136e5120bc9
[tox] add mypy

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist=py3,check-manifest,flake8
+envlist=py3,check-manifest,flake8,mypy
 
 [testenv]
 basepython=python3
@@ -28,3 +28,8 @@ exclude = docs/*,.tox/*
 
 [pytest]
 python_files = *test_*.py
+
+[testenv:mypy]
+deps =
+  mypy >= 0.761
+commands = mypy --ignore-missing-imports yams



More information about the cubicweb-devel mailing list