Skip to content

Commit

Permalink
mypy: Ignore missing imports (#779)
Browse files Browse the repository at this point in the history
That should stop mypy from complaining about untyped libraries,
including when used via vscode
  • Loading branch information
Hofer-Julian authored Nov 14, 2023
1 parent 95822e0 commit 073c089
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[mypy]
plugins = pydantic.mypy, numpy.typing.mypy_plugin, pandera.mypy
ignore_missing_imports = True

warn_unused_configs = True
warn_redundant_casts = True
Expand Down
6 changes: 3 additions & 3 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ quarto-render = { cmd = "export QUARTO_PYTHON=python && quarto render docs --to
] }
docs = { depends_on = ["build-julia-docs", "quarto-preview"] }
# Lint
mypy-ribasim-python = "mypy --ignore-missing-imports python/ribasim/ribasim"
mypy-ribasim-testmodels = "mypy --ignore-missing-imports python/ribasim_testmodels/ribasim_testmodels"
mypy-ribasim-api = "mypy --ignore-missing-imports python/ribasim_api/ribasim_api"
mypy-ribasim-python = "mypy python/ribasim/ribasim"
mypy-ribasim-testmodels = "mypy python/ribasim_testmodels/ribasim_testmodels"
mypy-ribasim-api = "mypy python/ribasim_api/ribasim_api"
pre-commit = "pre-commit run --all-files"
lint = { depends_on = [
"pre-commit",
Expand Down

0 comments on commit 073c089

Please sign in to comment.