From dd98e31ad6f9e33f351d47246d6d09c804ba8c29 Mon Sep 17 00:00:00 2001 From: lovetox Date: Fri, 20 May 2022 14:44:59 +0200 Subject: Add inline type annotations (#1089) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * crypto: Add type annotations * Don’t redefine var mypy complains about the redefinition * _util: Add type annotations * rand: Add type annotations * Prepare package & CI for running mypy * fix toxenv name Co-authored-by: Maximilian Hils --- tox.ini | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 1c99fcb..4d69405 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = {pypy,pypy3,py36,py37,py38,py39,py310}{,-cryptographyMain,-cryptographyMinimum}{,-useWheel}{,-randomorder},py37-twistedTrunk,check-manifest,flake8,docs,coverage-report +envlist = {pypy,pypy3,py36,py37,py38,py39,py310}{,-cryptographyMain,-cryptographyMinimum}{,-useWheel}{,-randomorder},py37-twistedTrunk,check-manifest,flake8,py36-mypy,docs,coverage-report [testenv] whitelist_externals = @@ -44,6 +44,13 @@ commands = black --check . flake8 . +[testenv:py36-mypy] +deps = + mypy==0.950 +skip_install = true +commands = + mypy src + [testenv:check-manifest] deps = check-manifest -- cgit v1.2.1