Skip to content

Commit 79bc55f

Browse files
committed
feat: add fixes using retrocookie
1 parent 2c70070 commit 79bc55f

File tree

1 file changed

+29
-38
lines changed

1 file changed

+29
-38
lines changed

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 29 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,65 @@
11
[project]
2-
name = "{{ cookiecutter.package_name }}"
2+
name = "{{cookiecutter.package_name}}"
33
version = "0.1.0"
4-
description = "{{ cookiecutter.package_name }}"
4+
description = "{{cookiecutter.package_name}}"
55
authors = [
6-
{ name = "{{ cookiecutter.author }}", email = "{{ cookiecutter.email }}" },
6+
{ name = "{{cookiecutter.author}}", email = "{{cookiecutter.email}}" },
77
]
8-
license = { text = "{{ cookiecutter.license }}" }
8+
license = { text = "{{cookiecutter.license}}" }
99
readme = "README.md"
10-
requires-python = ">={{ cookiecutter.min_python_version}},<4.0"
10+
requires-python = ">={{cookiecutter.min_python_version}},<4.0"
1111

1212
keywords = [
13-
"{{ cookiecutter.project_name.replace('_', '-') }}",
13+
"{{cookiecutter.project_name.replace('_', '-')}}",
1414
]
1515

1616
classifiers = [
17-
"Programming Language :: Python :: {{ cookiecutter.min_python_version }}",
17+
"Programming Language :: Python :: {{cookiecutter.min_python_version}}",
1818
"Programming Language :: Python :: 3 :: Only",
19-
"License :: OSI Approved :: {{ cookiecutter.license }}",
19+
"License :: OSI Approved :: {{cookiecutter.license}}",
2020
]
2121

2222
dependencies = [
2323
"loguru",
2424
"platformdirs>=4.3.8",
2525
]
2626

27-
[project.optional-dependencies]
27+
[dependency-groups]
2828
dev = [
29-
"nox>=2024.3.2",
30-
"commitizen>=3.11.1",
31-
"pre-commit>=3.7.0",
29+
"commitizen>=4.7.0",
30+
"nox>={{cookiecutter.copyright_year}}.5.1",
31+
"pre-commit>=4.2.0",
3232
]
33-
34-
test = [
35-
"pytest>=8.1.1",
36-
"pytest-cov>=5.0.0",
37-
]
38-
39-
typecheck = [
40-
"pyright>=1.1.356"
33+
docs = [
34+
"furo>=2024.8.6",
35+
"myst-parser>=3.0.1",
36+
"sphinx>=7.4.7",
37+
"sphinx-autodoc-typehints>=2.3.0",
38+
"sphinx-copybutton>=0.5.2",
39+
"sphinx-tabs>=3.4.7",
4140
]
42-
4341
lint = [
44-
"ruff>=0.3.5",
4542
"pydocstyle>=6.3.0",
43+
"ruff>=0.11.9",
4644
]
47-
4845
security = [
49-
"pip-audit>=2.8.4",
50-
"bandit>=1.7.7",
46+
"bandit>=1.8.3",
47+
"pip-audit>=2.9.0",
5148
]
52-
53-
docs = [
54-
"sphinx>=7.3.7",
55-
"myst-parser>=2.0.0",
56-
"furo>=2024.3.4",
57-
"sphinx-copybutton>=0.5",
58-
"sphinx-autodoc-typehints>=1.24.0",
49+
test = [
50+
"pytest>=8.3.5",
51+
"pytest-cov>=6.1.1",
52+
]
53+
typecheck = [
54+
"pyright>=1.1.400",
5955
]
6056

6157
[project.urls]
6258
Homepage = "https://github.com/{{ cookiecutter.github_user | lower | replace(' ', '-') }}/{{ cookiecutter.project_name.replace('_', '-') }}"
6359
Repository = "https://github.com/{{ cookiecutter.github_user | lower | replace(' ', '-') }}/{{ cookiecutter.project_name.replace('_', '-') }}"
6460

6561
[build-system]
66-
requires = [
67-
"setuptools>=61.0"
68-
{% if cookiecutter.add_rust_extension == 'y' -%}
69-
,"maturin>=1.3.0"
70-
{% endif -%}
71-
]
62+
requires = [{% if cookiecutter.add_rust_extension == 'y' -%} "maturin>=1.3.0,<2.0" {% else -%} "setuptools>=61.0" {% endif %}]
7263
build-backend = {% if cookiecutter.add_rust_extension == 'y' -%} "maturin" {% else -%} "setuptools.build_meta" {% endif %}
7364

7465

0 commit comments

Comments
 (0)