Skip to content

Commit

Permalink
Ignore untyped imports via pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Jun 11, 2024
1 parent ebcaf2e commit 40e4866
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ disallow_untyped_calls = true
disallow_untyped_defs = true
exclude = ["tests/"]

[[tool.mypy.overrides]]
module = [
"fabric",
"flatdict"
]
ignore_missing_imports = true

[tool.pytest.ini_options]
log_level = "INFO"

Expand Down
4 changes: 2 additions & 2 deletions sapinvoices/sap.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from math import fsum
from typing import Any, Literal

import fabric # type: ignore[import-untyped]
import flatdict # type: ignore[import-untyped]
import fabric
import flatdict
import requests.exceptions
from paramiko import RSAKey

Expand Down

0 comments on commit 40e4866

Please sign in to comment.