Skip to content

Commit

Permalink
style: reformat python files with black
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 committed Sep 19, 2024
1 parent 4de4702 commit e5f6740
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/make_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def generate_makefile(self):
# Set Jijna2 environment and variables
j2_env = jinja2.Environment(
autoescape=jinja2.select_autoescape(None),
loader=jinja2.FileSystemLoader(searchpath=str(template_dir))
loader=jinja2.FileSystemLoader(searchpath=str(template_dir)),
)
j2_env.filters["dirname"] = self.dirname
plist_template = j2_env.get_template("pkg-plist.j2")
Expand Down Expand Up @@ -98,12 +98,12 @@ def generate_makefile(self):

def run_ssh_cmd(self, cmd):
"""Formats the SSH command to use when building on remote hosts."""
ssh_cmd = ['ssh', f'{self.args.username}@{self.args.host}', f'"{cmd}"']
ssh_cmd = ["ssh", f"{self.args.username}@{self.args.host}", f'"{cmd}"']
return subprocess.call(ssh_cmd, shell=False)

def run_scp_cmd(self, src, dst, recurse=False):
"""Formats the SCP command to use when copying over the built package."""
scp_cmd = ['scp', '-r' if recurse else '', src, dst]
scp_cmd = ["scp", "-r" if recurse else "", src, dst]
return subprocess.call(scp_cmd, shell=False)

def build_package(self, pkg_dir):
Expand Down

0 comments on commit e5f6740

Please sign in to comment.