PEP 8 compliance.

This commit is contained in:
yrriban 2025-06-15 13:33:33 -04:00
parent 2076e7341d
commit ebdac7c89d

View file

@ -3,6 +3,7 @@ import dcc.doom_base
import wand.color import wand.color
import wand.image import wand.image
class Thumb(dcc.doom_base.WadMap): class Thumb(dcc.doom_base.WadMap):
def get_parser(self, prog_name): def get_parser(self, prog_name):
parser = super().get_parser(prog_name) parser = super().get_parser(prog_name)
@ -13,7 +14,10 @@ class Thumb(dcc.doom_base.WadMap):
base = self.base_thumb_path() base = self.base_thumb_path()
text = self.text_thumb_path() text = self.text_thumb_path()
mdoom = self.m_doom_path() mdoom = self.m_doom_path()
with wand.image.Image(filename=base) as bi, wand.color.Color("transparent") as tc: with (
wand.image.Image(filename=base) as bi,
wand.color.Color("transparent") as tc
):
with wand.image.Image(filename=text) as ti: with wand.image.Image(filename=text) as ti:
ti.border(tc, 5, 5) ti.border(tc, 5, 5)
bi.composite(ti, gravity="south_west") bi.composite(ti, gravity="south_west")
@ -23,7 +27,9 @@ class Thumb(dcc.doom_base.WadMap):
bi.composite(mdi, gravity="north_west") bi.composite(mdi, gravity="north_west")
if parsed_args.index: if parsed_args.index:
with wand.image.Image(filename=self.output.joinpath("doomed_index.png")) as di: with wand.image.Image(
filename=self.output.joinpath("doomed_index.png")
) as di:
di.border(tc, 1, 1) di.border(tc, 1, 1)
bi.composite(di, gravity="north_east") bi.composite(di, gravity="north_east")