Skip to content

Commit da812cf

Browse files
committed
chore(deps): update project metadata order and dependency constraints
- Reorder project metadata attributes for consistency and clarity - Add version constraints to dependencies for better reproducibility - Replace individual docs dependencies with liblaf-mkdocs-preset for simplified maintenance - Add hypothesis statistics display to pytest configuration
1 parent f578435 commit da812cf

1 file changed

Lines changed: 26 additions & 36 deletions

File tree

template/pyproject.toml.jinja

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,28 @@
33
# ref: <https://packaging.python.org/en/latest/specifications/pyproject-toml/>
44

55
[project]
6-
authors = [{ email = "{{ author_email }}", name = "{{ author_name }}" }]
6+
name = "{{ package_name }}"
7+
description = "TODO"
8+
readme = "README.md"
9+
requires-python = ">=3.12"
10+
license = "{{ license }}"
11+
authors = [{ name = "{{ author_name }}", email = "{{ author_email }}" }]
12+
keywords = []
713
classifiers = [
8-
# common classifiers
914
# ref: <https://pypi.org/classifiers/>
1015
"Development Status :: 4 - Beta",
1116
"Intended Audience :: Developers",
12-
"License :: OSI Approved :: MIT License",
1317
"License :: OSI Approved",
18+
"License :: OSI Approved :: MIT License",
1419
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
1521
"Programming Language :: Python :: 3",
1622
"Programming Language :: Python :: 3.12",
1723
"Programming Language :: Python :: 3.13",
18-
"Programming Language :: Python",
1924
"Typing :: Typed",
2025
]
21-
dependencies = ["lazy-loader", "loguru"]
22-
description = "TODO"
26+
dependencies = ["lazy-loader>=0.4,<0.5", "loguru>=0.7,<0.8"]
2327
dynamic = ["version"]
24-
keywords = []
25-
license = "{{ license }}"
26-
name = "{{ package_name }}"
27-
readme = "README.md"
28-
requires-python = ">=3.12"
2928

3029
[project.urls]
3130
"Changelog" = "https://github.com/{{ github_user }}/{{ github_repo }}/blob/main/CHANGELOG.md"
@@ -37,31 +36,17 @@ requires-python = ">=3.12"
3736
"Source Code" = "https://github.com/{{ github_user }}/{{ github_repo }}"
3837

3938
[dependency-groups]
40-
build = ["check-wheel-contents", "hatch", "twine"]
41-
dev = ["icecream"]
42-
docs = [
43-
"docstring-inheritance",
44-
"griffe-fieldz",
45-
"griffe-generics",
46-
"griffe-inherited-docstrings",
47-
"griffe-modernized-annotations",
48-
"griffe-pydantic",
49-
"griffe-warnings-deprecated",
50-
"mdx-truly-sane-lists",
51-
"mkdocs",
52-
"mkdocs-api-autonav",
53-
"mkdocs-autorefs",
54-
"mkdocs-git-committers-plugin-2",
55-
"mkdocs-git-revision-date-localized-plugin",
56-
"mkdocs-include-markdown-plugin",
57-
"mkdocs-material[imaging]",
58-
"mkdocs-section-index",
59-
"mkdocstrings",
60-
"mkdocstrings-python",
61-
"pymdown-extensions",
62-
"ruff",
39+
build = ["check-wheel-contents>=0.6,<0.7", "hatch>=1,<2", "twine>=6,<7"]
40+
dev = ["icecream>=2,<3"]
41+
docs = ["liblaf-mkdocs-preset>=0.1,<0.2", "mkdocs>=1,<2"]
42+
test = [
43+
"hypothesis>=6,<7",
44+
"pytest-codspeed>=4,<5",
45+
"pytest-cov>=6,<7",
46+
"pytest-randomly>=3,<4",
47+
"pytest-xdist>=3,<4",
48+
"pytest>=8,<9",
6349
]
64-
test = ["hypothesis", "pytest", "pytest-codspeed", "pytest-cov", "pytest-xdist"]
6550

6651
[build-system]
6752
requires = ["hatch-vcs", "hatchling"]
@@ -109,7 +94,12 @@ exclude = ["**/.*", "**/__pycache__", "**/marimo", "**/node_modules"]
10994
extends = ".config/linters/pyrightconfig.json"
11095

11196
[tool.pytest.ini_options]
112-
addopts = ["--showlocals", "--strict-config", "--strict-markers"]
97+
addopts = [
98+
"--hypothesis-show-statistics",
99+
"--showlocals",
100+
"--strict-config",
101+
"--strict-markers",
102+
]
113103
testpaths = ["benches", "tests"]
114104

115105
[tool.ruff]

0 commit comments

Comments
 (0)