Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Oct 24, 2023
1 parent 9b560ca commit 2bd44fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,8 @@ def is_parallel_allowed(self, typ: str) -> bool:
"is safe for parallel post-transforming, assuming "
"it isn't - please ask the extension author "
"to check and make it explicit")
message_not_safe = __("the %s extension is not safe for parallel post-transforming")
message_not_safe = __("the %s extension is not safe for parallel "
"post-transforming")
else:
raise ValueError('parallel type %s is not supported' % typ)

Expand Down
1 change: 1 addition & 0 deletions sphinx/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def __init__(self, name: str, module: Any, **kwargs: Any) -> None:
# subprocesses which can speed up build time by a factor of 2.5 on big projects.
self.parallel_post_transform_safe = kwargs.pop('parallel_post_transform_safe', True)


def verify_needs_extensions(app: Sphinx, config: Config) -> None:
"""Check that extensions mentioned in :confval:`needs_extensions` satisfy the version
requirement, and warn if an extension is not loaded.
Expand Down

0 comments on commit 2bd44fe

Please sign in to comment.