Skip to content

Commit

Permalink
Added mypy config
Browse files Browse the repository at this point in the history
  • Loading branch information
lorinkoz committed Jun 25, 2023
1 parent 7ef7cdc commit b2464e0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,29 @@ line-length = 120
[tool.ruff.isort]
known-first-party = ["django_pgschemas"]

[tool.mypy]
strict_optional = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_unused_ignores = true

[[tool.mypy.overrides]]
module = [
"channels.*",
"psycopg.*",
"psycopg2.*",
]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = [
"docs.*",
"django_pgschemas.contrib.*",
"django_pgschemas.postgresql_backend.*",
"dpgs_sandbox.*",
]
ignore_errors = true

[tool.coverage.run]
source = ["django_pgschemas"]
omit = ["django_pgschemas/contrib/channels*"]
Expand Down

0 comments on commit b2464e0

Please sign in to comment.