Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Aug 7, 2024
1 parent 4d7fab8 commit af40e77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions sphinx/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ def build(self, force_all: bool = False, filenames: list[str] | None = None) ->
elif self._warncount == 1:
if self._warning_is_error:
self.statuscode = 1
msg = __('build finished with problems, %s warning (with warnings treated as errors).')
msg = __('build finished with problems, %s warning '
'(with warnings treated as errors).')
elif self.statuscode != 0:
msg = __('build finished with problems, %s warning.')
else:
Expand All @@ -401,7 +402,8 @@ def build(self, force_all: bool = False, filenames: list[str] | None = None) ->
else:
if self._warning_is_error:
self.statuscode = 1
msg = __('build finished with problems, %s warnings (with warnings treated as errors).')
msg = __('build finished with problems, %s warnings '
'(with warnings treated as errors).')
elif self.statuscode != 0:
msg = __('build finished with problems, %s warnings.')
else:
Expand Down
1 change: 0 additions & 1 deletion tests/test_util/test_util_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import pytest
from docutils import nodes

from sphinx.errors import SphinxWarning
from sphinx.util import logging, osutil
from sphinx.util.console import colorize, strip_colors
from sphinx.util.logging import is_suppressed_warning, prefixed_warnings
Expand Down

0 comments on commit af40e77

Please sign in to comment.