From 0f573178be78e97c2061c97f36855851d568f0f4 Mon Sep 17 00:00:00 2001 From: Peter Wegmann Date: Tue, 21 Nov 2023 15:48:52 +0100 Subject: [PATCH] mypy --- .github/workflows/code.yaml | 2 +- pyproject.toml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code.yaml b/.github/workflows/code.yaml index 5af0922..809951e 100644 --- a/.github/workflows/code.yaml +++ b/.github/workflows/code.yaml @@ -52,7 +52,7 @@ jobs: - name: Test with pytest run: | - pytest -v . --ignore=frappy + tox -e pytest diff --git a/pyproject.toml b/pyproject.toml index 7ed8158..d781dd0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,10 @@ allow-direct-references = true [tool.flake8] exclude = "frappy" +[tool.mypy] +ignore_missing_imports = true # Ignore missing stubs in imported modules +plugins = ["numpy.typing.mypy_plugin"] + # tox must currently be configured via an embedded ini string # See: https://github.com/tox-dev/tox/issues/999 @@ -79,7 +83,7 @@ legacy_tox_ini = """ [tox] skipsdist=True -[testenv:{pre-commit,mypy,pytest,docs}] +[testenv:{pre-commit,mypy,pytest}] # Don't create a virtualenv for the command, requires tox-direct plugin direct = True passenv = *