diff --git a/src/hatch/template/files_default.py b/src/hatch/template/files_default.py index be94dad2a..0590394f9 100644 --- a/src/hatch/template/files_default.py +++ b/src/hatch/template/files_default.py @@ -166,11 +166,11 @@ def __init__(self, template_config: dict, plugin_config: dict): [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] -[tool.hatch.envs.typing] +[tool.hatch.envs.types] dependencies = [ "mypy>=1.0.0", ] -[tool.hatch.envs.typing.scripts] +[tool.hatch.envs.types.scripts] check = "mypy --install-types --non-interactive {{args:{package_location}{template_config['package_name']} tests}}" [tool.coverage.run] diff --git a/tests/helpers/templates/new/default.py b/tests/helpers/templates/new/default.py index 06418f8d5..2e6a7531b 100644 --- a/tests/helpers/templates/new/default.py +++ b/tests/helpers/templates/new/default.py @@ -124,11 +124,11 @@ def get_files(**kwargs): [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] -[tool.hatch.envs.typing] +[tool.hatch.envs.types] dependencies = [ "mypy>=1.0.0", ] -[tool.hatch.envs.typing.scripts] +[tool.hatch.envs.types.scripts] check = "mypy --install-types --non-interactive {{args:src/{kwargs['package_name']} tests}}" [tool.coverage.run] diff --git a/tests/helpers/templates/new/feature_cli.py b/tests/helpers/templates/new/feature_cli.py index c12c6c14d..32cd003c4 100644 --- a/tests/helpers/templates/new/feature_cli.py +++ b/tests/helpers/templates/new/feature_cli.py @@ -158,11 +158,11 @@ def {kwargs['package_name']}(): [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] -[tool.hatch.envs.typing] +[tool.hatch.envs.types] dependencies = [ "mypy>=1.0.0", ] -[tool.hatch.envs.typing.scripts] +[tool.hatch.envs.types.scripts] check = "mypy --install-types --non-interactive {{args:src/{kwargs['package_name']} tests}}" [tool.coverage.run] diff --git a/tests/helpers/templates/new/feature_no_src_layout.py b/tests/helpers/templates/new/feature_no_src_layout.py index e7fd24eae..e2e9c3dc6 100644 --- a/tests/helpers/templates/new/feature_no_src_layout.py +++ b/tests/helpers/templates/new/feature_no_src_layout.py @@ -124,11 +124,11 @@ def get_files(**kwargs): [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] -[tool.hatch.envs.typing] +[tool.hatch.envs.types] dependencies = [ "mypy>=1.0.0", ] -[tool.hatch.envs.typing.scripts] +[tool.hatch.envs.types.scripts] check = "mypy --install-types --non-interactive {{args:{kwargs['package_name']} tests}}" [tool.coverage.run] diff --git a/tests/helpers/templates/new/licenses_empty.py b/tests/helpers/templates/new/licenses_empty.py index 76e81f8ad..9146e5d10 100644 --- a/tests/helpers/templates/new/licenses_empty.py +++ b/tests/helpers/templates/new/licenses_empty.py @@ -87,11 +87,11 @@ def get_files(**kwargs): [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] -[tool.hatch.envs.typing] +[tool.hatch.envs.types] dependencies = [ "mypy>=1.0.0", ] -[tool.hatch.envs.typing.scripts] +[tool.hatch.envs.types.scripts] check = "mypy --install-types --non-interactive {{args:src/{kwargs['package_name']} tests}}" [tool.coverage.run] diff --git a/tests/helpers/templates/new/licenses_multiple.py b/tests/helpers/templates/new/licenses_multiple.py index 01e4fc85a..8bfb92823 100644 --- a/tests/helpers/templates/new/licenses_multiple.py +++ b/tests/helpers/templates/new/licenses_multiple.py @@ -127,11 +127,11 @@ def get_files(**kwargs): [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] -[tool.hatch.envs.typing] +[tool.hatch.envs.types] dependencies = [ "mypy>=1.0.0", ] -[tool.hatch.envs.typing.scripts] +[tool.hatch.envs.types.scripts] check = "mypy --install-types --non-interactive {{args:src/{kwargs['package_name']} tests}}" [tool.coverage.run] diff --git a/tests/helpers/templates/new/projects_urls_empty.py b/tests/helpers/templates/new/projects_urls_empty.py index 253ce7b71..bb210f137 100644 --- a/tests/helpers/templates/new/projects_urls_empty.py +++ b/tests/helpers/templates/new/projects_urls_empty.py @@ -119,11 +119,11 @@ def get_files(**kwargs): [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] -[tool.hatch.envs.typing] +[tool.hatch.envs.types] dependencies = [ "mypy>=1.0.0", ] -[tool.hatch.envs.typing.scripts] +[tool.hatch.envs.types.scripts] check = "mypy --install-types --non-interactive {{args:src/{kwargs['package_name']} tests}}" [tool.coverage.run] diff --git a/tests/helpers/templates/new/projects_urls_space_in_label.py b/tests/helpers/templates/new/projects_urls_space_in_label.py index 56222dbb5..28b6b792a 100644 --- a/tests/helpers/templates/new/projects_urls_space_in_label.py +++ b/tests/helpers/templates/new/projects_urls_space_in_label.py @@ -122,11 +122,11 @@ def get_files(**kwargs): [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] -[tool.hatch.envs.typing] +[tool.hatch.envs.types] dependencies = [ "mypy>=1.0.0", ] -[tool.hatch.envs.typing.scripts] +[tool.hatch.envs.types.scripts] check = "mypy --install-types --non-interactive {{args:src/{kwargs['package_name']} tests}}" [tool.coverage.run]