Skip to content
Snippets Groups Projects
Commit 75601b58 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Add mypy to Makefile and tox.ini

parent 541ff0ee
No related branches found
No related tags found
2 merge requests!143Release 0.15.0,!66F mypy
...@@ -32,7 +32,7 @@ doc: ...@@ -32,7 +32,7 @@ doc:
install: install:
@echo "Not implemented yet, use pip for installation." @echo "Not implemented yet, use pip for installation."
check: style lint check: style lint mypy
.PHONY: check .PHONY: check
style: style:
...@@ -43,6 +43,10 @@ lint: ...@@ -43,6 +43,10 @@ lint:
pylint --unsafe-load-any-extension=y -d all -e E,F src/linkahead/common pylint --unsafe-load-any-extension=y -d all -e E,F src/linkahead/common
.PHONY: lint .PHONY: lint
mypy:
mypy src/linkahead
.PHONY: mypy
unittest: unittest:
tox -r tox -r
.PHONY: unittest .PHONY: unittest
[tox] [tox]
envlist=py37, py38, py39, py310, py311 envlist=py37, py38, py39, py310, py311, py312
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
deps = . deps = .
nose pynose
pytest pytest
pytest-cov pytest-cov
mypy
jsonschema>=4.4.0 jsonschema>=4.4.0
setuptools
commands=py.test --cov=caosdb -vv {posargs} commands=py.test --cov=caosdb -vv {posargs}
[flake8] [flake8]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment