From 8ed0c33e059ac553dafb30220833fa118ee13071 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Fri, 23 Aug 2024 21:18:40 -0600 Subject: [PATCH] tooling: add type checking into tox --- tox.ini | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index a4d197d..d69edbf 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] requires = tox>=4 -envlist = lint, py3{8,9,10,11,12} +envlist = lint, type, py3{8,9,10,11,12} [testenv] usedevelop=true @@ -19,10 +19,20 @@ skip_install = true deps = flake8 commands = flake8 +[testenv:type] +description = run type checks +skip_install = true +deps = + mypy >= 1.0 + types-python-dateutil + types-vobject +commands = + mypy {posargs:gcalcli} + [gh] python = - 3.12 = py312, lint + 3.12 = py312, lint, type 3.11 = py311 3.10 = py310 3.9 = py39 - 3.8 = py38 + 3.8 = py38, type