Accept most of ruff's delinting

This commit is contained in:
James R. Barlow
2023-04-14 00:45:34 -07:00
parent b7eb93eb79
commit 9b8d14d16e
47 changed files with 121 additions and 172 deletions
+2 -1
View File
@@ -86,7 +86,6 @@ def configure_logging(
Returns:
The toplevel logger for ocrmypdf (or the root logger, if we are managing it).
"""
prefix = '' if manage_root_logger else 'ocrmypdf'
log = logging.getLogger(prefix)
@@ -277,6 +276,8 @@ def ocr( # pylint: disable=unused-argument
When a stream is used as output, whether via a writable object or
``"-"``, some final validation steps are not performed (we do not read
back the stream after it is written).
Raises:
ocrmypdf.MissingDependencyError: If a required dependency program is missing or
was not found on PATH.