Skip to content

Commit b1e74a5

Browse files
committed
build(pyproject.toml): update dev group spec from poetry style to PEP 735 style
This requires poetry-core >= 2.2.0 https://python-poetry.org/blog/announcing-poetry-2.2.0/
1 parent e241812 commit b1e74a5

File tree

4 files changed

+35
-37
lines changed

4 files changed

+35
-37
lines changed

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you're a first-time contributor, please check out issues labeled [good first
1616

1717
1. **Python Environment**
1818
- Python `>=3.9`
19-
- [Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) `>=2.0.0`
19+
- [Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) `>=2.2.0`
2020
2. **Version Control & Security**
2121
- Git
2222
- Commitizen

docs/contributing_tldr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Feel free to send a PR to update this file if you find anything useful. 🙇
33
## Environment
44

55
- Python `>=3.9`
6-
- [Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) `>=2.0.0`
6+
- [Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) `>=2.2.0`
77

88
## Useful commands
99

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,38 @@ pep440 = "commitizen.version_schemes:Pep440"
8585
semver = "commitizen.version_schemes:SemVer"
8686
semver2 = "commitizen.version_schemes:SemVer2"
8787

88+
[dependency-groups]
89+
dev = ["ipython>=8.0,<9.0", "tox>4", "poethepoet>=0.34.0,<1.0.0"]
90+
91+
test = [
92+
"pytest>=7.2,<9.0",
93+
"pytest-cov>=4,<7",
94+
"pytest-mock>=3.10,<4.0",
95+
"pytest-regressions>=2.4.0,<3.0.0",
96+
"pytest-freezer>=0.4.6,<1.0.0",
97+
"pytest-xdist>=3.1.0,<4.0.0",
98+
]
99+
100+
linters = [
101+
"ruff>=0.11.5,<1.0.0",
102+
"pre-commit>=3.2.0,<5.0",
103+
"mypy>=1.16.0,<2.0",
104+
"types-deprecated>=1.2.9.2,<2.0",
105+
"types-python-dateutil>=2.8.19.13,<3.0",
106+
"types-PyYAML>=5.4.3,<7.0.0",
107+
"types-termcolor>=0.1.1,<1.0",
108+
"types-colorama>=0.4.15.20240311,<1.0",
109+
]
110+
111+
documentation = ["mkdocs>=1.4.2,<2.0", "mkdocs-material>=9.1.6,<10.0"]
112+
113+
script = [
114+
# for scripts/gen_cli_help_screenshots.py
115+
"rich>=13.7.1,<14.0",
116+
]
117+
88118
[build-system]
89-
requires = ["poetry-core>=2.0"]
119+
requires = ["poetry-core>=2.2"]
90120
build-backend = "poetry.core.masonry.api"
91121

92122

@@ -107,38 +137,6 @@ packages = [{ include = "commitizen" }, { include = "commitizen/py.typed" }]
107137
[tool.poetry.requires-plugins]
108138
"poethepoet" = ">=0.32.2"
109139

110-
[tool.poetry.group.dev.dependencies]
111-
ipython = "^8.0"
112-
tox = ">4"
113-
poethepoet = "^0.34.0"
114-
115-
[tool.poetry.group.test.dependencies]
116-
pytest = ">=7.2,<9.0"
117-
pytest-cov = ">=4,<7"
118-
pytest-mock = "^3.10"
119-
pytest-regressions = "^2.4.0"
120-
pytest-freezer = "^0.4.6"
121-
pytest-xdist = "^3.1.0"
122-
123-
[tool.poetry.group.linters.dependencies]
124-
ruff = "^0.11.5"
125-
pre-commit = ">=3.2.0,<5.0"
126-
mypy = "^1.16.0"
127-
types-deprecated = "^1.2.9.2"
128-
types-python-dateutil = "^2.8.19.13"
129-
types-PyYAML = ">=5.4.3,<7.0.0"
130-
types-termcolor = "^0.1.1"
131-
types-colorama = "^0.4.15.20240311"
132-
133-
[tool.poetry.group.documentation.dependencies]
134-
mkdocs = "^1.4.2"
135-
mkdocs-material = "^9.1.6"
136-
137-
[tool.poetry.group.script.dependencies]
138-
# for scripts/gen_cli_help_screenshots.py
139-
rich = "^13.7.1"
140-
141-
142140
[tool.coverage]
143141
[tool.coverage.report]
144142
show_missing = true

0 commit comments

Comments
 (0)