Configures ruff as the one stop linter and resolves warnings it raised

This commit is contained in:
Trenton H committed 2023-04-01 17:03:52 -07:00
1 parent 5869467db3
commit ce41ac9158
110 files changed
+507 -491

No files matched your search

+2 -3
View File
@@ -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