Commit d6273303 authored by Alex Hornby's avatar Alex Hornby Committed by Facebook GitHub Bot

fix lint

Summary: Fix FLAKE8 lint about redefintion of 'getdeps' variable

Reviewed By: HarveyHunt

Differential Revision: D32644576

fbshipit-source-id: 9c3b4ef54d2278238c3dc88a4969e34e24976a3d
parent 569318b2
...@@ -857,7 +857,7 @@ jobs: ...@@ -857,7 +857,7 @@ jobs:
""" """
) )
getdeps = f"{py3} build/fbcode_builder/getdeps.py" getdepscmd = f"{py3} build/fbcode_builder/getdeps.py"
out.write(" build:\n") out.write(" build:\n")
out.write(" runs-on: %s\n" % runs_on) out.write(" runs-on: %s\n" % runs_on)
...@@ -889,12 +889,12 @@ jobs: ...@@ -889,12 +889,12 @@ jobs:
for m in projects: for m in projects:
if m != manifest: if m != manifest:
out.write(" - name: Fetch %s\n" % m.name) out.write(" - name: Fetch %s\n" % m.name)
out.write(f" run: {getdeps} fetch --no-tests {m.name}\n") out.write(f" run: {getdepscmd} fetch --no-tests {m.name}\n")
for m in projects: for m in projects:
if m != manifest: if m != manifest:
out.write(" - name: Build %s\n" % m.name) out.write(" - name: Build %s\n" % m.name)
out.write(f" run: {getdeps} build --no-tests {m.name}\n") out.write(f" run: {getdepscmd} build --no-tests {m.name}\n")
out.write(" - name: Build %s\n" % manifest.name) out.write(" - name: Build %s\n" % manifest.name)
...@@ -905,7 +905,7 @@ jobs: ...@@ -905,7 +905,7 @@ jobs:
) )
out.write( out.write(
f" run: {getdeps} build --src-dir=. {manifest.name} {project_prefix}\n" f" run: {getdepscmd} build --src-dir=. {manifest.name} {project_prefix}\n"
) )
out.write(" - name: Copy artifacts\n") out.write(" - name: Copy artifacts\n")
...@@ -919,7 +919,7 @@ jobs: ...@@ -919,7 +919,7 @@ jobs:
strip = "" strip = ""
out.write( out.write(
f" run: {getdeps} fixup-dyn-deps{strip} " f" run: {getdepscmd} fixup-dyn-deps{strip} "
f"--src-dir=. {manifest.name} _artifacts/{job_name} {project_prefix} " f"--src-dir=. {manifest.name} _artifacts/{job_name} {project_prefix} "
f"--final-install-prefix /usr/local\n" f"--final-install-prefix /usr/local\n"
) )
...@@ -931,7 +931,7 @@ jobs: ...@@ -931,7 +931,7 @@ jobs:
out.write(" - name: Test %s\n" % manifest.name) out.write(" - name: Test %s\n" % manifest.name)
out.write( out.write(
f" run: {getdeps} test --src-dir=. {manifest.name} {project_prefix}\n" f" run: {getdepscmd} test --src-dir=. {manifest.name} {project_prefix}\n"
) )
def setup_project_cmd_parser(self, parser): def setup_project_cmd_parser(self, parser):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment