Skip to content

Commit

Permalink
apply Black 2024 style in fbcode (5/16)
Browse files Browse the repository at this point in the history
Summary:
Formats the covered files with pyfmt.

paintitblack

Reviewed By: aleivag

Differential Revision: D54447730

fbshipit-source-id: 85ed104b2f8f5e26ae0dea9ee17392ecad8b9407
  • Loading branch information
amyreese authored and facebook-github-bot committed Mar 3, 2024
1 parent 393150d commit 69337e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/fbcode_builder/getdeps/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def _build(self, install_dirs, reconfigure) -> None:
env = self._compute_env(install_dirs)

# Some configure scripts need additional env values passed derived from cmds
for (k, cmd_args) in self.conf_env_args.items():
for k, cmd_args in self.conf_env_args.items():
out = (
subprocess.check_output(cmd_args, env=dict(env.items()))
.decode("utf-8")
Expand Down
4 changes: 2 additions & 2 deletions build/fbcode_builder/getdeps/cargo.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def _resolve_dep_to_git(self):

crate_source_map = {}
if dep_crate_map:
for (crate, subpath) in dep_crate_map.items():
for crate, subpath in dep_crate_map.items():
if crate not in crate_source_map:
if self.build_opts.is_windows():
subpath = subpath.replace("/", "\\")
Expand Down Expand Up @@ -444,7 +444,7 @@ def _resolve_crate_to_path(self, crate, crate_source_map):
"""
search_pattern = '[package]\nname = "{}"'.format(crate)

for (_crate, crate_source_dir) in crate_source_map.items():
for _crate, crate_source_dir in crate_source_map.items():
for crate_root, _, files in os.walk(crate_source_dir):
if "Cargo.toml" in files:
with open(os.path.join(crate_root, "Cargo.toml"), "r") as f:
Expand Down
2 changes: 1 addition & 1 deletion build/fbcode_builder/getdeps/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Loader(object):

def _list_manifests(self, build_opts):
"""Returns a generator that iterates all the available manifests"""
for (path, _, files) in os.walk(build_opts.manifests_dir):
for path, _, files in os.walk(build_opts.manifests_dir):
for name in files:
# skip hidden files
if name.startswith("."):
Expand Down

0 comments on commit 69337e5

Please sign in to comment.