Fix: run pre-commit hooks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-28 09:39:51 +02:00
parent d5981d25e5
commit cd2fdc162e
35 changed files with 368 additions and 363 deletions

View File

@@ -15,4 +15,3 @@ class Dispatcher:
)
return choosen_action(args=task.args, deps=task.deps, output=task.output)

View File

@@ -11,4 +11,3 @@ def activate_corr(args, deps, output):
output_f.write(line.replace(no_solution, solution))
return Message(0, [f"ACTIVATE CORR - {deps[0]} to {output}"], [])

View File

@@ -1,6 +1,7 @@
import subprocess
from bopytex.message import Message
from ..message import SubprocessMessage

View File

@@ -8,16 +8,16 @@ def generate(args, deps, output):
template = env.get_template(deps[0])
variables = {
"options":args["options"],
"subject":args["subject"],
}
"options": args["options"],
"subject": args["subject"],
}
try:
args["options"]["direct_access"]
except KeyError:
pass
else:
for (k,v) in args["options"]["direct_access"].items():
for (k, v) in args["options"]["direct_access"].items():
if k not in ["options", "subject"]:
variables[k] = v

View File

@@ -18,10 +18,9 @@ def pdfjam(args: dict, deps, output):
def gs(args: dict, deps, output):
""" Not working. The command works in terminal but not here """
"""Not working. The command works in terminal but not here"""
joining_process = subprocess.Popen(
["gs", f"-dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile={output}"]
+ deps,
["gs", f"-dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile={output}"] + deps,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True,