From 55f4585d0763a1d5b0eef0b415518bbd9b0cc85a Mon Sep 17 00:00:00 2001 From: Konstantin Tsoy Date: Wed, 26 Jul 2023 12:49:13 -0700 Subject: [PATCH] Back out "Fix typos discovered by codespell" Summary: Original commit changeset: 337824bc37bc Original Phabricator Diff: D47722462 Reviewed By: jbeshay, terrelln, lnicco Differential Revision: D47801753 fbshipit-source-id: 795ffcccbc2223608e2a707ec2e5bcc7dd974eb3 --- build/fbcode_builder/CMake/FBPythonBinary.cmake | 4 ++-- build/fbcode_builder/CMake/fb_py_test_main.py | 2 +- build/fbcode_builder/getdeps.py | 2 +- build/fbcode_builder/getdeps/builder.py | 2 +- build/fbcode_builder/getdeps/cargo.py | 4 ++-- build/fbcode_builder/getdeps/envfuncs.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build/fbcode_builder/CMake/FBPythonBinary.cmake b/build/fbcode_builder/CMake/FBPythonBinary.cmake index f91ebaf32..99c33fb8c 100644 --- a/build/fbcode_builder/CMake/FBPythonBinary.cmake +++ b/build/fbcode_builder/CMake/FBPythonBinary.cmake @@ -32,7 +32,7 @@ if(NOT TARGET Python3::Interpreter) # We find with QUIET here, since otherwise this generates some noisy warnings # on versions of CMake before 3.12 if (WIN32) - # On Windows we need both the Interpreter as well as the Development + # On Windows we need both the Intepreter as well as the Development # libraries. find_package(Python3 COMPONENTS Interpreter Development QUIET) else() @@ -487,7 +487,7 @@ function(add_fb_python_library LIB_NAME) # won't complain if one of the dependencies doesn't exist (since it is # intended to allow passing in file names for plain library files rather # than just targets). - # - It ensures that sources for our dependencies are built before any + # - It ensures that sources for our depencencies are built before any # executable that depends on us. Note that we depend on "${dep}.py_lib" # rather than "${dep}.py_sources_built" for this purpose because the # ".py_sources_built" target won't be available for imported targets. diff --git a/build/fbcode_builder/CMake/fb_py_test_main.py b/build/fbcode_builder/CMake/fb_py_test_main.py index 41626181b..e9ae5dd02 100644 --- a/build/fbcode_builder/CMake/fb_py_test_main.py +++ b/build/fbcode_builder/CMake/fb_py_test_main.py @@ -262,7 +262,7 @@ class BuckTestResult(unittest._TextTestResult): super(BuckTestResult, self).stopTest(test) - # If a failure occurred during module/class setup, then this "test" may + # If a failure occured during module/class setup, then this "test" may # actually be a `_ErrorHolder`, which doesn't contain explicit info # about the upcoming test. Since we really only care about the test # name field (i.e. `_testMethodName`), we use that to detect an actual diff --git a/build/fbcode_builder/getdeps.py b/build/fbcode_builder/getdeps.py index 9358c425e..565ef9913 100755 --- a/build/fbcode_builder/getdeps.py +++ b/build/fbcode_builder/getdeps.py @@ -626,7 +626,7 @@ class BuildCmd(ProjectCmdBase): ) builder.build(install_dirs, reconfigure=reconfigure) - # If we are building the project (not dependency) and a specific + # If we are building the project (not depdendency) and a specific # cmake_target (not 'install') has been requested, then we don't # set the built_marker. This allows subsequent runs of getdeps.py # for the project to run with different cmake_targets to trigger diff --git a/build/fbcode_builder/getdeps/builder.py b/build/fbcode_builder/getdeps/builder.py index aa1b0f996..4f0c80909 100644 --- a/build/fbcode_builder/getdeps/builder.py +++ b/build/fbcode_builder/getdeps/builder.py @@ -346,7 +346,7 @@ class AutoconfBuilder(BuilderBase): class Iproute2Builder(BuilderBase): # ./configure --prefix does not work for iproute2. - # Thus, explicitly copy sources from src_dir to build_dir, build, + # Thus, explicitly copy sources from src_dir to build_dir, bulid, # and then install to inst_dir using DESTDIR # lastly, also copy include from build_dir to inst_dir def __init__(self, build_opts, ctx, manifest, src_dir, build_dir, inst_dir) -> None: diff --git a/build/fbcode_builder/getdeps/cargo.py b/build/fbcode_builder/getdeps/cargo.py index 09e00a39c..64a4e577b 100644 --- a/build/fbcode_builder/getdeps/cargo.py +++ b/build/fbcode_builder/getdeps/cargo.py @@ -194,7 +194,7 @@ directory = "{vendored_dir}" my-rename-of-crate = { package = "crate", git = "..." } they can count themselves lucky because the code will raise an - Exception. There might be more cases where the code will silently pass + Exception. There migh be more cases where the code will silently pass producing bad results. """ workspace_dir = self.workspace_dir() @@ -362,7 +362,7 @@ path = "{null_file}" dep_to_crates = {} - # First populate explicit crate paths from dependencies + # First populate explicit crate paths from depedencies for name, git_conf in dep_to_git.items(): crates = git_conf["crate_source_map"].keys() if crates: diff --git a/build/fbcode_builder/getdeps/envfuncs.py b/build/fbcode_builder/getdeps/envfuncs.py index 60de6b231..6072a69ec 100644 --- a/build/fbcode_builder/getdeps/envfuncs.py +++ b/build/fbcode_builder/getdeps/envfuncs.py @@ -32,7 +32,7 @@ class Env(object): # project uses `unicode_literals`. `subprocess` will raise an error # if the environment that it is passed has a mixture of byte and # unicode strings. - # It is simplest to force everything to be `str` for the sake of + # It is simplest to force everthing to be `str` for the sake of # consistency. key = str(key) if sys.platform.startswith("win"):