Skip to content

Commit

Permalink
Change the name of the type checking environment in new project templ…
Browse files Browse the repository at this point in the history
…ates (#1067)
  • Loading branch information
ofek authored Nov 27, 2023
1 parent 3321f08 commit 52a81d8
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/hatch/template/files_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/templates/new/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/templates/new/feature_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/templates/new/feature_no_src_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/templates/new/licenses_empty.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/templates/new/licenses_multiple.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/templates/new/projects_urls_empty.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/templates/new/projects_urls_space_in_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 52a81d8

Please sign in to comment.