Skip to content

Commit 6fd1e6e

Browse files
clintonsteinerakaihola
authored andcommitted
fix optional dependency
1 parent 71f46e7 commit 6fd1e6e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/sphinx-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
enable-cache: true
2020

2121
- name: Sync UV
22-
run: uv sync --group docs
22+
run: uv sync --extra docs
2323

2424
- name: Build HTML
2525
run: uv run sphinx-build -b html docs docs/_build/html

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ dev = [
7474
"wheel>=0.21.0",
7575
"astor>=0.8.1",
7676
]
77-
docs = [
78-
"sphinx",
79-
"sphinx-rtd-theme",
80-
]
8177

8278
[project.urls]
8379
Homepage = "https://github.com/akaihola/darker"
@@ -94,6 +90,12 @@ none = "darker.formatters.none_formatter:NoneFormatter"
9490
[project.scripts]
9591
darker = "darker.__main__:main_with_error_handling"
9692

93+
[project.optional-dependencies]
94+
docs = [
95+
"sphinx>=7.4.7",
96+
"sphinx-rtd-theme>=3.0.2",
97+
]
98+
9799
[tool.black]
98100
# Darker makes Black read its configuration from the file indicated by the `--config`
99101
# option, so we need to mirror the same configuration here and in `check-darker.toml`.

0 commit comments

Comments
 (0)