Skip to content

Commit d9fc303

Browse files
authored
Merge pull request #124 from bluetech/parallel-safe
Declare as Sphinx parallel safe
2 parents e39eb28 + a69500e commit d9fc303

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pygments_pytest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def stylesheet(colors: dict[str, str] | None = None) -> str:
185185
)
186186

187187

188-
def setup(app: Any) -> None: # pragma: no cover (sphinx)
188+
def setup(app: Any) -> dict[str, object]: # pragma: no cover (sphinx)
189189
def copy_stylesheet(app: Any, exception: Exception | None) -> None:
190190
if exception:
191191
return
@@ -199,3 +199,7 @@ def copy_stylesheet(app: Any, exception: Exception | None) -> None:
199199
app.add_config_value('pygments_pytest_ansi_colors', {}, 'html')
200200
app.add_css_file('pygments_pytest.css')
201201
app.connect('build-finished', copy_stylesheet)
202+
return {
203+
'parallel_read_safe': True,
204+
'parallel_write_safe': True,
205+
}

0 commit comments

Comments
 (0)