@@ -9,14 +9,14 @@ build-backend = "hatchling.build"
99
1010[project]
1111dynamic = ["version"]
12- name = "{{project_name}}"
13- description = "{{package_description}}"
14- license = "{{license}}"
12+ name = "{{ project_name }}"
13+ description = "{{ package_description }}"
14+ license = "{{ license }}"
1515license-files = ["LICEN[CS]E.*"]
1616readme = "README.md"
17- requires-python = ">=3.{{python_minor}}"
17+ requires-python = ">=3.{{ python_minor }}"
1818authors = [
19- {name = "{{user_name}}", email = "{{user_email}}"}
19+ {name = "{{ user_name }}", email = "{{ user_email }}"}
2020]
2121keywords = []
2222classifiers = [
@@ -81,20 +81,20 @@ dependencies = [
8181# optional_name = ["some_package >=1.0"]
8282
8383[project.urls]
84- # homepage = "https://{{project_name}}.readthedocs.io"
85- source = "https://github.com/{{github_user}}/{{project_name}}"
86- # changelog = "https://github.com/{{github_user}}/{{project_name}}/blob/master/CHANGELOG.md"
87- # releasenotes = "https://github.com/{{github_user}}/{{project_name}}/releases"
88- # documentation = "https://{{project_name}}.readthedocs.io"
89- # issues = "https://github.com/{{github_user}}/{{project_name}}/issues"
90- # funding = "https://github.com/sponsors/{{github_user}}"
84+ # homepage = "https://{{ project_name }}.readthedocs.io"
85+ source = "https://github.com/{{ github_user }}/{{ project_name }}"
86+ # changelog = "https://github.com/{{ github_user }}/{{ project_name }}/blob/master/CHANGELOG.md"
87+ # releasenotes = "https://github.com/{{ github_user }}/{{ project_name }}/releases"
88+ # documentation = "https://{{ project_name }}.readthedocs.io"
89+ # issues = "https://github.com/{{ github_user }}/{{ project_name }}/issues"
90+ # funding = "https://github.com/sponsors/{{ github_user }}"
9191
9292[project.scripts]
9393{% if not has_cli -%} # {% endif -%}
94- {{project_name}} = "{{package_name}}.cli:app"
94+ {{ project_name }} = "{{ package_name }}.cli:app"
9595
9696[project.gui-scripts]
97- # {{project_name}} = "{{package_name}}.gui:app.run"
97+ # {{ project_name }} = "{{ package_name }}.gui:app.run"
9898
9999
100100[tool.uv]
@@ -111,7 +111,7 @@ dev = [
111111 "nbstripout ~=0.8.0",
112112 {% - endif %}
113113 "editorconfig-checker ~=3.0",
114- "black{% if contains_jupyter_files %} [jupyter]{% endif %} ~=25.0",
114+ "black{% if contains_jupyter_files %} [jupyter]{% endif %} ~=25.0",
115115 "blacken-docs ~=1.0",
116116 "ruff ~=0.9.0",
117117 "validate-pyproject[all,store] ~=0.23.0",
@@ -160,7 +160,7 @@ typing = [
160160version.source = "vcs"
161161build.hooks.vcs.version-file = "src/{{ package_name }}/_version.py"
162162{% - else %}
163- version.path = "src/{{ package_name }}/__init__.py"
163+ version.path = "src/{{ package_name }}/__init__.py"
164164{% - endif %}
165165
166166
@@ -175,7 +175,7 @@ addopts = [
175175 "-ra",
176176 ## addons
177177 "--benchmark-disable", # pytest-benchmark
178- "--cov=src/{{package_name}}", # pytest-cov
178+ "--cov=src/{{ package_name }}", # pytest-cov
179179 "--reverse", # pytest-reverse
180180 "--numprocesses=auto", # pytest-xdist
181181]
@@ -184,16 +184,16 @@ xfail_strict = true
184184filterwarnings = [
185185 "error",
186186 "default::DeprecationWarning",
187- "error::DeprecationWarning:{{package_name}}",
187+ "error::DeprecationWarning:{{ package_name }}",
188188]
189189log_cli_level = "INFO"
190190
191191
192192[tool.coverage]
193193run.omit = [
194- "src/{{package_name}}/__main__.py",
194+ "src/{{ package_name }}/__main__.py",
195195{% - if get_package_version_from_vcs %}
196- "src/{{package_name}}/_version.py",
196+ "src/{{ package_name }}/_version.py",
197197{% - endif %}
198198]
199199
@@ -204,7 +204,7 @@ mypy_path = "stubs"
204204# verify the config file
205205warn_unused_configs = true
206206# set the platform
207- python_version = "3.{{python_minor}}"
207+ python_version = "3.{{ python_minor }}"
208208# enable checks [last updated: mypy 1.15]
209209strict = true
210210disallow_any_explicit = true
@@ -274,11 +274,11 @@ flake8-comprehensions.allow-dict-calls-with-keyword-arguments = true
274274"collections.namedtuple".msg = "Use typing.NamedTuple or @dataclasses.dataclass(frozen=True, slots=True)"
275275
276276[tool.ruff.lint.per-file-ignores]
277- "src/{{package_name}}/cli.py" = [
277+ "src/{{ package_name }}/cli.py" = [
278278 "T20", # flake8-print
279279]
280280{% - if get_package_version_from_vcs %}
281- "src/{{package_name}}/_version.py" = [
281+ "src/{{ package_name }}/_version.py" = [
282282 "ALL",
283283]
284284{% - endif %}
@@ -294,7 +294,7 @@ flake8-comprehensions.allow-dict-calls-with-keyword-arguments = true
294294
295295
296296[tool.pylint]
297- py-version = "3.{{python_minor}}"
297+ py-version = "3.{{ python_minor }}"
298298{% - if get_package_version_from_vcs %}
299299ignore-paths = [".*/_version.py"]
300300{% - endif %}
0 commit comments