build: Use 'dev' dependency group for PEP 735 compliance

Only for development and build time dependencies, not run time dependencies
that are meant to be published with the package.
This commit is contained in:
Dimitri Papadopoulos Orfanos
2026-02-23 08:56:09 +01:00
committed by GitHub
parent cba56bcde1
commit 30a25fe087
2 changed files with 12 additions and 14 deletions
+1 -4
View File
@@ -22,10 +22,7 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3.x"
- run:
pip install flake8 flake8-import-order ruff sphinx sphinx_rtd_theme
rstcheck[sphinx] doc8
- run: pip install .
- run: pip install --group dev .
- run: flake8 .
- run: ruff check --output-format=github
- run: doc8 $(git ls-files '*.rst')
+11 -10
View File
@@ -22,16 +22,6 @@ dependencies = [
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"doc8",
"flake8",
"flake8-import-order",
"rstcheck[sphinx]",
"ruff",
"sphinx",
]
[project.scripts]
yamllint = "yamllint.cli:run"
@@ -40,6 +30,17 @@ homepage = "https://github.com/adrienverge/yamllint"
repository = "https://github.com/adrienverge/yamllint"
documentation = "https://yamllint.readthedocs.io"
[dependency-groups]
dev = [
"doc8",
"flake8",
"flake8-import-order",
"rstcheck[sphinx]",
"ruff",
"sphinx",
"sphinx_rtd_theme",
]
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 77.0.3"]