diff --git a/.mypy.ini b/.mypy.ini index 7790fca0c7..37b9b409f0 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -9,7 +9,7 @@ files = check_untyped_defs = true disallow_any_explicit = true -# disallow_any_expr = true # crashes with some decorators like `@functools.cache` and `@pytest.mark.parametrize` +disallow_any_expr = true disallow_any_decorated = true disallow_any_generics = true disallow_any_unimported = true @@ -57,6 +57,52 @@ warn_return_any = true warn_unused_configs = true warn_unused_ignores = true +[mypy-awx_plugins.credentials.aim] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.credentials.aws_secretsmanager] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.credentials.azure_kv] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.credentials.centrify_vault] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.credentials.conjur] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.credentials.dsv] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.credentials.hashivault] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.credentials.injectors] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.credentials.plugin] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.credentials.tss] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + +[mypy-awx_plugins.inventory.plugins] +# crashes with some decorators like `@functools.cache`: +disallow_any_expr = false + [mypy-tests.*] +# crashes with some decorators like `@pytest.mark.parametrize`: +disallow_any_expr = false # fails on `@hypothesis.given()`: disallow_any_decorated = false diff --git a/nitpick-style.toml b/nitpick-style.toml index 9b43e5a387..9729d3a61d 100644 --- a/nitpick-style.toml +++ b/nitpick-style.toml @@ -85,7 +85,7 @@ error_summary = true check_untyped_defs = true disallow_any_explicit = true -# disallow_any_expr = true # crashes with some decorators like `@functools.cache` and `@pytest.mark.parametrize` +disallow_any_expr = true # crashes with some decorators like `@functools.cache` and `@pytest.mark.parametrize` disallow_any_decorated = true # fails on `@hypothesis.given()` disallow_any_generics = true disallow_any_unimported = true