mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Configures ruff as the one stop linter and resolves warnings it raised
This commit is contained in:
@@ -136,9 +136,8 @@ def convert_from_tiff_to_pdf(filepath: Path) -> Path:
|
||||
filepath,
|
||||
],
|
||||
)
|
||||
with filepath.open("rb") as img_file:
|
||||
with newpath.open("wb") as pdf_file:
|
||||
pdf_file.write(img2pdf.convert(img_file))
|
||||
with filepath.open("rb") as img_file, newpath.open("wb") as pdf_file:
|
||||
pdf_file.write(img2pdf.convert(img_file))
|
||||
return newpath
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user