Skip to content

Commit 70559b8

Browse files
JulfriedPierre-SassoulasDanielNoord
authored
Add dependency groups to pyproject.toml file (#10332)
Co-authored-by: Pierre Sassoulas <[email protected]> Co-authored-by: Daniël van Noord <[email protected]>
1 parent 6faf5b4 commit 70559b8

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
@@ -34,7 +34,8 @@ classifiers = [
3434
"Typing :: Typed",
3535
]
3636
dynamic = [ "version" ]
37-
37+
# All the dependencies of the project will be configured here, once pip fully supports PEP735
38+
# TODO: Remove all requirements.txt files and use this section instead once pip supports PEP735
3839
dependencies = [
3940
# Also upgrade requirements_test_min.txt.
4041
# Pinned to dev of second minor update to allow editable installs and fix primer issues,
@@ -51,8 +52,10 @@ dependencies = [
5152
"tomlkit>=0.10.1",
5253
"typing-extensions>=3.10; python_version<'3.10'",
5354
]
55+
5456
optional-dependencies.spelling = [ "pyenchant~=3.2" ]
5557
optional-dependencies.testutils = [ "gitpython>3" ]
58+
5659
urls."Bug Tracker" = "https://github.com/pylint-dev/pylint/issues"
5760
urls."Discord Server" = "https://discord.com/invite/Egy6P8AMB5"
5861
urls."Docs: Contributor Guide" = "https://pylint.readthedocs.io/en/latest/development_guide/contributor_guide/index.html"
@@ -65,6 +68,44 @@ scripts.pylint-config = "pylint:_run_pylint_config"
6568
scripts.pyreverse = "pylint:run_pyreverse"
6669
scripts.symilar = "pylint:run_symilar"
6770

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

0 commit comments

Comments
 (0)