From 75601b5883e1b46a8e2bafedfdf03ff9584c18f5 Mon Sep 17 00:00:00 2001 From: Joscha Schmiedt <joscha@schmiedt.dev> Date: Tue, 12 Mar 2024 20:45:50 +0100 Subject: [PATCH] Add mypy to Makefile and tox.ini --- Makefile | 6 +++++- tox.ini | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d15c830d..eb767dd4 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ doc: install: @echo "Not implemented yet, use pip for installation." -check: style lint +check: style lint mypy .PHONY: check style: @@ -43,6 +43,10 @@ lint: pylint --unsafe-load-any-extension=y -d all -e E,F src/linkahead/common .PHONY: lint +mypy: + mypy src/linkahead +.PHONY: mypy + unittest: tox -r .PHONY: unittest diff --git a/tox.ini b/tox.ini index 8212226e..49c0c74d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,13 +1,15 @@ [tox] -envlist=py37, py38, py39, py310, py311 +envlist=py37, py38, py39, py310, py311, py312 skip_missing_interpreters = true [testenv] deps = . - nose + pynose pytest pytest-cov + mypy jsonschema>=4.4.0 + setuptools commands=py.test --cov=caosdb -vv {posargs} [flake8] -- GitLab