Skip to content

Commit

Permalink
Merge pull request #213 from jenshnielsen/mypy_missing_imports
Browse files Browse the repository at this point in the history
Mypy ignore_missing_imports improvements
  • Loading branch information
trevormorgan authored Aug 8, 2022
2 parents 859424b + 10aa489 commit ee6273a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
pip install .
- name: Run Mypy
run: mypy broadbean
run: mypy -p broadbean
- name: Run tests
run: |
pytest --cov=broadbean --cov-report xml --hypothesis-profile ci broadbean
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,19 @@ minversion = "6.0"
addopts = "-ra -q"

[tool.mypy]
ignore_missing_imports = true
show_error_codes = true
enable_error_code = "ignore-without-code"
warn_unused_ignores = true
warn_unused_configs = true
warn_redundant_casts = true

[[tool.mypy.overrides]]
module = [
"matplotlib.*",
"schema"
]
ignore_missing_imports = true

[tool.versioningit]
default-version = "0.0"

Expand Down

0 comments on commit ee6273a

Please sign in to comment.