Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Wegmann committed Nov 21, 2023
1 parent da91321 commit 0f57317
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Test with pytest
run: |
pytest -v . --ignore=frappy
tox -e pytest


Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = *
Expand Down

0 comments on commit 0f57317

Please sign in to comment.