Skip to content

Commit

Permalink
tooling: add type checking into tox
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarnett committed Aug 24, 2024
1 parent 5028d91 commit 8ed0c33
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 8ed0c33

Please sign in to comment.