Skip to content

Commit 84c6c11

Browse files
committed
Switch to override formulation to allow for partial fixes
1 parent d744117 commit 84c6c11

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pyproject.toml

+9-3
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ log_cli = true
6565
[tool.mypy]
6666
# Suggested at https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
6767
# Goal would be to make all of the below True long-term
68-
disallow_untyped_defs = false
69-
disallow_any_unimported = false
68+
disallow_untyped_defs = true
69+
disallow_any_unimported = true
7070
no_implicit_optional = true
71-
check_untyped_defs = false
71+
check_untyped_defs = true
7272
warn_return_any = true
7373
warn_unused_ignores = true
7474
show_error_codes = true
@@ -77,6 +77,12 @@ show_error_codes = true
7777
module = ['basix', 'cffi', 'numba.*', 'pygraphviz', 'ufl.*']
7878
ignore_missing_imports = true
7979

80+
[[tool.mypy.overrides]]
81+
module = ["ffcx.*", "ffcx.ir.*", "ffcx.codegeneration.*"]
82+
disallow_untyped_defs = false
83+
disallow_any_unimported = false
84+
check_untyped_defs = false
85+
8086
[tool.ruff]
8187
line-length = 100
8288
indent-width = 4

0 commit comments

Comments
 (0)