Fix: run pre-commit hooks
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -15,4 +15,3 @@ class Dispatcher:
|
||||
)
|
||||
|
||||
return choosen_action(args=task.args, deps=task.deps, output=task.output)
|
||||
|
||||
|
||||
@@ -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}"], [])
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import subprocess
|
||||
|
||||
from bopytex.message import Message
|
||||
|
||||
from ..message import SubprocessMessage
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user