Skip to content

Commit a744c39

Browse files
Re-apply "Add dependency groups to pyproject.toml file" (#10523)
This reverts commit d462809 from #10342 who itself reverted #10332
1 parent 8f11288 commit a744c39

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

pyproject.toml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ classifiers = [
3333
"Typing :: Typed",
3434
]
3535
dynamic = [ "version" ]
36-
36+
# All the dependencies of the project will be configured here, once pip fully supports PEP735
37+
# TODO: Remove all requirements.txt files and use this section instead once pip supports PEP735
3738
dependencies = [
3839
# Also upgrade requirements_test_min.txt.
3940
# Pinned to dev of second minor update to allow editable installs and fix primer issues,
@@ -50,8 +51,10 @@ dependencies = [
5051
"tomlkit>=0.10.1",
5152
"typing-extensions>=3.10; python_version<'3.10'",
5253
]
54+
5355
optional-dependencies.spelling = [ "pyenchant~=3.2" ]
5456
optional-dependencies.testutils = [ "gitpython>3" ]
57+
5558
urls."Bug Tracker" = "https://github.com/pylint-dev/pylint/issues"
5659
urls."Discord Server" = "https://discord.com/invite/Egy6P8AMB5"
5760
urls."Docs: Contributor Guide" = "https://pylint.readthedocs.io/en/latest/development_guide/contributor_guide/index.html"
@@ -64,6 +67,44 @@ scripts.pylint-config = "pylint:_run_pylint_config"
6467
scripts.pyreverse = "pylint:run_pyreverse"
6568
scripts.symilar = "pylint:run_symilar"
6669

70+
[dependency-groups]
71+
dev = [
72+
"contributors-txt>=1",
73+
"pre-commit",
74+
"tbump~=6.11.0",
75+
]
76+
77+
test = [
78+
"coverage~=7.8",
79+
"pytest-cov~=6.0",
80+
"pytest-xdist~=3.6",
81+
"six",
82+
"tox>=3",
83+
"types-setuptools==78.1.0.20250329",
84+
{ include-group = "test-min" },
85+
]
86+
87+
docs = [
88+
"furo==2024.8.6",
89+
"sphinx==8.2.3",
90+
"sphinx-reredirects<1",
91+
"towncrier~=24.8",
92+
]
93+
94+
# Configuration for the build system
95+
test-min = [
96+
# Base test dependencies
97+
"astroid==4.0.0a0", # Pinned to a specific version for tests
98+
"py~=1.11.0",
99+
"pytest~=8.3",
100+
"pytest-benchmark~=5.1",
101+
"pytest-timeout~=2.3",
102+
"requests",
103+
"setuptools; python_version>='3.12'",
104+
"towncrier~=24.8",
105+
"typing-extensions~=4.12",
106+
]
107+
67108
[tool.setuptools.packages.find]
68109
include = [ "pylint*" ]
69110

0 commit comments

Comments
 (0)