diff --git a/examples/generators/production_python_smart_contract_python/pyproject.toml b/examples/generators/production_python_smart_contract_python/pyproject.toml index 99fda3c..9ea6bdf 100644 --- a/examples/generators/production_python_smart_contract_python/pyproject.toml +++ b/examples/generators/production_python_smart_contract_python/pyproject.toml @@ -63,3 +63,9 @@ disallow_any_unimported = true disallow_any_expr = true disallow_any_decorated = true disallow_any_explicit = true +exclude = ["^smart_contracts/artifacts/.*$"] + +[[tool.mypy.overrides]] +module = "smart_contracts.artifacts.*" +ignore_missing_imports = true +follow_imports = "silent" diff --git a/examples/generators/production_python_smart_contract_typescript/pyproject.toml b/examples/generators/production_python_smart_contract_typescript/pyproject.toml index b0e4ada..a1fc317 100644 --- a/examples/generators/production_python_smart_contract_typescript/pyproject.toml +++ b/examples/generators/production_python_smart_contract_typescript/pyproject.toml @@ -16,7 +16,7 @@ algorand-python-testing = "^0.4.0" [tool.poetry.group.dev.dependencies] black = {extras = ["d"], version = "*"} ruff = "^0.1.6" -mypy = "*" +mypy = "1.11.0" pip-audit = "*" pre-commit = "*" puyapy = "*" @@ -52,7 +52,7 @@ warn_redundant_casts = true warn_unused_ignores = true warn_return_any = true strict_equality = true -strict_concatenate = true +extra_checks = true disallow_any_unimported = true disallow_any_expr = true disallow_any_decorated = true diff --git a/examples/production_python/pyproject.toml b/examples/production_python/pyproject.toml index 9c6617e..0417b16 100644 --- a/examples/production_python/pyproject.toml +++ b/examples/production_python/pyproject.toml @@ -17,7 +17,7 @@ algorand-python-testing = "^0.4.0" algokit-client-generator = "^1.1.3" black = {extras = ["d"], version = "*"} ruff = "^0.1.6" -mypy = "*" +mypy = "1.11.0" pytest = "*" pytest-cov = "*" pip-audit = "*" @@ -58,14 +58,8 @@ warn_redundant_casts = true warn_unused_ignores = true warn_return_any = true strict_equality = true -strict_concatenate = true +extra_checks = true disallow_any_unimported = true disallow_any_expr = true disallow_any_decorated = true disallow_any_explicit = true -exclude = ["^smart_contracts/artifacts/.*$"] - -[[tool.mypy.overrides]] -module = "smart_contracts.artifacts.*" -ignore_missing_imports = true -follow_imports = "silent" diff --git a/template_content/pyproject.toml.jinja b/template_content/pyproject.toml.jinja index 1ded6a8..a6f2c8c 100644 --- a/template_content/pyproject.toml.jinja +++ b/template_content/pyproject.toml.jinja @@ -26,7 +26,7 @@ ruff = "^0.1.6" flake8 = "*" {% endif -%} {% if use_python_mypy -%} -mypy = "*" +mypy = "1.11.0" {% endif -%} {% if use_python_pytest -%} pytest = "*" @@ -77,15 +77,9 @@ warn_redundant_casts = true warn_unused_ignores = true warn_return_any = true strict_equality = true -strict_concatenate = true +extra_checks = true disallow_any_unimported = true disallow_any_expr = true disallow_any_decorated = true disallow_any_explicit = true -exclude = ["^smart_contracts/artifacts/.*$"] - -[[tool.mypy.overrides]] -module = "smart_contracts.artifacts.*" -ignore_missing_imports = true -follow_imports = "silent" {% endif -%}