Skip to content

Commit f030f60

Browse files
committed
Satisfy black
1 parent 9beee26 commit f030f60

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

latextools/make_pdf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
The actual work is done by builders, loaded on-demand from prefs
66
"""
7+
78
import functools
89
import html
910
import os
@@ -130,7 +131,9 @@ def worker(self, activity_indicator):
130131
self.caller.output("error\n" if proc.returncode else "done\n")
131132
pending = False
132133
if proc.returncode != 0:
133-
cmd = os.path.basename(proc.args[0]) if isinstance(proc.args, list) else proc.args
134+
cmd = (
135+
os.path.basename(proc.args[0]) if isinstance(proc.args, list) else proc.args
136+
)
134137
logger.error(f"{cmd} returned status {proc.returncode}.")
135138
if self.caller.builder.abort_on_error:
136139
# abort and parse logfile or command output for details
@@ -533,8 +536,7 @@ def run(
533536
builder = get_plugin(builder_name)
534537
except NoSuchPluginException:
535538
sublime.error_message(
536-
f"Cannot find builder {builder_name}.\n"
537-
"Check your LaTeXTools Preferences"
539+
f"Cannot find builder {builder_name}.\nCheck your LaTeXTools Preferences"
538540
)
539541
self.window.run_command("hide_panel", {"panel": "output.latextools"})
540542
return

plugins/builder/basic_builder.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class BasicBuilder(PdfBuilder):
3838
concept. It implements the same building features as the
3939
Traditional builder.
4040
"""
41+
4142
name = "Basic Builder"
4243

4344
def commands(self) -> CommandGenerator:
@@ -111,10 +112,7 @@ def commands(self) -> CommandGenerator:
111112
elif isinstance(bibtex, str):
112113
bibtex = [bibtex]
113114
bibtex.append(self.job_name)
114-
yield (
115-
self.command(bibtex, cwd=self.aux_directory_full),
116-
f"running {bibtex[0]}..."
117-
)
115+
yield (self.command(bibtex, cwd=self.aux_directory_full), f"running {bibtex[0]}...")
118116
else:
119117
yield (biber + [self.job_name], "running biber...")
120118

plugins/builder/pdf_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def expandvars(self, text: str, **custom_vars: str) -> str:
295295
A string with all known variables expanded.
296296
"""
297297
return Template(text).safe_substitute(
298-
eol='', # a dummy to be used to prevent automatic base_name appending
298+
eol="", # a dummy to be used to prevent automatic base_name appending
299299
file=self.tex_root,
300300
file_path=self.tex_dir,
301301
file_name=self.tex_name,

0 commit comments

Comments
 (0)