From 7870e1da6fbd6e3f6d5b7a45fa4a7507a8ead349 Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Mon, 22 Jan 2024 14:43:14 -0800 Subject: [PATCH] Fix: dev-dependencies vs optional-dependencies [skip ci] Signed-off-by: Matthew Watkins --- pyproject.toml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 67d277c..54b560f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,16 +45,30 @@ license-files = ["LICENSES.txt"] osc-rule-based-extractor = "osc_rule_based_extractor.skeleton:run" [project.optional-dependencies] - dev = [ +dev = [ "pylint", "toml", "yapf", - "pdm" + "pdm", + "tox", + "tox-pdm" ] test = [ "pytest", "pytest-cov", ] +tox = [ + "tox", + "tox-pdm>=0.5", +] +docs = [ + "sphinx>=7.2.6", + "sphinx-copybutton>=0.5.2" +] +lint = [ + "pre-commit", + "pyproject-flake8" +] [tool.setuptools_scm] @@ -67,13 +81,6 @@ docs = { shell = "cd docs && mkdocs serve", help = "Start the dev server for doc lint = "pre-commit run --all-files" complete = { call = "tasks.complete:main", help = "Create autocomplete files for bash and fish" } -[tool.pdm.dev-dependencies] -test = ["pdm[pytest]", "pytest", "pytest-cov"] -tox = ["tox", "tox-pdm>=0.5"] -docs = ["sphinx>=7.2.6", "sphinx-copybutton>=0.5.2"] -dev = ["tox>=4.11.3", "tox-pdm>=0.7.0"] -lint = ["pre-commit", "pyproject-flake8"] - [tool.pytest.ini_options] testpaths = [ "tests/",