@@ -94,10 +94,35 @@ python = [
9494test = "pytest {args}"
9595coverage = "coverage run -m pytest {args}"
9696
97-
9897[tool.hatch.build.targets.wheel]
9998packages = ["{{ package_name }}"]
10099
100+ [tool.coverage.run]
101+ source = ["{{ package_name }}"]
102+ branch = true
103+
104+ [tool.coverage.report]
105+ omit = [
106+ "tests/*",
107+ "tests/**",
108+ ]
109+
110+ [tool.mypy]
111+ python_version = "{{ python_min_version }}"
112+ files = ["{{ package_name }}"]
113+ exclude = ["^tests/"]
114+
115+ disallow_untyped_defs = true
116+ disallow_untyped_calls = true
117+ disallow_any_generics = true
118+ no_implicit_optional = true
119+ warn_unused_ignores = true
120+ warn_redundant_casts = true
121+ warn_return_any = true
122+ warn_unused_configs = true
123+ strict_equality = true
124+ ignore_missing_imports = true
125+
101126[tool.ruff]
102127line-length = 100
103128
@@ -193,29 +218,3 @@ known-first-party = ["{{ package_name }}", "tests"]
193218
194219[tool.ruff.lint.pydocstyle]
195220convention = "google"
196-
197- [tool.coverage.run]
198- source = ["{{ package_name }}"]
199- branch = true
200-
201- [tool.coverage.report]
202- omit = [
203- "tests/*",
204- "tests/**",
205- ]
206-
207- [tool.mypy]
208- python_version = "{{ python_min_version }}"
209- files = ["interfacy"]
210- exclude = ["^tests/"]
211-
212- disallow_untyped_defs = true
213- disallow_untyped_calls = true
214- disallow_any_generics = true
215- no_implicit_optional = true
216- warn_unused_ignores = true
217- warn_redundant_casts = true
218- warn_return_any = true
219- warn_unused_configs = true
220- strict_equality = true
221- ignore_missing_imports = true
0 commit comments