1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +03:00

Fix typos discovered by codespell

Summary:
`codespell --ignore-words-list=arithmetics,atleast,crate,crated,deriver,ect,hel,onl,startin,whats --skip="*.lock"`
* https://pypi.org/project/codespell

X-link: https://github.com/facebookincubator/mvfst/pull/307

Reviewed By: hanidamlaj, lnicco

Differential Revision: D47809078

Pulled By: kvtsoy

fbshipit-source-id: 566557f2389746db541ff265a5dec8d6404b3701
This commit is contained in:
Christian Clauss
2023-07-26 17:10:41 -07:00
committed by Facebook GitHub Bot
parent 242ec89a5b
commit d3102141dc
6 changed files with 8 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ if(NOT TARGET Python3::Interpreter)
# We find with QUIET here, since otherwise this generates some noisy warnings # We find with QUIET here, since otherwise this generates some noisy warnings
# on versions of CMake before 3.12 # on versions of CMake before 3.12
if (WIN32) if (WIN32)
# On Windows we need both the Intepreter as well as the Development # On Windows we need both the Interpreter as well as the Development
# libraries. # libraries.
find_package(Python3 COMPONENTS Interpreter Development QUIET) find_package(Python3 COMPONENTS Interpreter Development QUIET)
else() 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 # 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 # intended to allow passing in file names for plain library files rather
# than just targets). # than just targets).
# - It ensures that sources for our depencencies are built before any # - It ensures that sources for our dependencies are built before any
# executable that depends on us. Note that we depend on "${dep}.py_lib" # executable that depends on us. Note that we depend on "${dep}.py_lib"
# rather than "${dep}.py_sources_built" for this purpose because the # rather than "${dep}.py_sources_built" for this purpose because the
# ".py_sources_built" target won't be available for imported targets. # ".py_sources_built" target won't be available for imported targets.

View File

@@ -262,7 +262,7 @@ class BuckTestResult(unittest._TextTestResult):
super(BuckTestResult, self).stopTest(test) super(BuckTestResult, self).stopTest(test)
# If a failure occured during module/class setup, then this "test" may # If a failure occurred during module/class setup, then this "test" may
# actually be a `_ErrorHolder`, which doesn't contain explicit info # actually be a `_ErrorHolder`, which doesn't contain explicit info
# about the upcoming test. Since we really only care about the test # about the upcoming test. Since we really only care about the test
# name field (i.e. `_testMethodName`), we use that to detect an actual # name field (i.e. `_testMethodName`), we use that to detect an actual

View File

@@ -626,7 +626,7 @@ class BuildCmd(ProjectCmdBase):
) )
builder.build(install_dirs, reconfigure=reconfigure) builder.build(install_dirs, reconfigure=reconfigure)
# If we are building the project (not depdendency) and a specific # If we are building the project (not dependency) and a specific
# cmake_target (not 'install') has been requested, then we don't # cmake_target (not 'install') has been requested, then we don't
# set the built_marker. This allows subsequent runs of getdeps.py # set the built_marker. This allows subsequent runs of getdeps.py
# for the project to run with different cmake_targets to trigger # for the project to run with different cmake_targets to trigger

View File

@@ -346,7 +346,7 @@ class AutoconfBuilder(BuilderBase):
class Iproute2Builder(BuilderBase): class Iproute2Builder(BuilderBase):
# ./configure --prefix does not work for iproute2. # ./configure --prefix does not work for iproute2.
# Thus, explicitly copy sources from src_dir to build_dir, bulid, # Thus, explicitly copy sources from src_dir to build_dir, build,
# and then install to inst_dir using DESTDIR # and then install to inst_dir using DESTDIR
# lastly, also copy include from build_dir to inst_dir # lastly, also copy include from build_dir to inst_dir
def __init__(self, build_opts, ctx, manifest, src_dir, build_dir, inst_dir) -> None: def __init__(self, build_opts, ctx, manifest, src_dir, build_dir, inst_dir) -> None:

View File

@@ -194,7 +194,7 @@ directory = "{vendored_dir}"
my-rename-of-crate = { package = "crate", git = "..." } my-rename-of-crate = { package = "crate", git = "..." }
they can count themselves lucky because the code will raise an they can count themselves lucky because the code will raise an
Exception. There migh be more cases where the code will silently pass Exception. There might be more cases where the code will silently pass
producing bad results. producing bad results.
""" """
workspace_dir = self.workspace_dir() workspace_dir = self.workspace_dir()
@@ -362,7 +362,7 @@ path = "{null_file}"
dep_to_crates = {} dep_to_crates = {}
# First populate explicit crate paths from depedencies # First populate explicit crate paths from dependencies
for name, git_conf in dep_to_git.items(): for name, git_conf in dep_to_git.items():
crates = git_conf["crate_source_map"].keys() crates = git_conf["crate_source_map"].keys()
if crates: if crates:

View File

@@ -32,7 +32,7 @@ class Env(object):
# project uses `unicode_literals`. `subprocess` will raise an error # project uses `unicode_literals`. `subprocess` will raise an error
# if the environment that it is passed has a mixture of byte and # if the environment that it is passed has a mixture of byte and
# unicode strings. # unicode strings.
# It is simplest to force everthing to be `str` for the sake of # It is simplest to force everything to be `str` for the sake of
# consistency. # consistency.
key = str(key) key = str(key)
if sys.platform.startswith("win"): if sys.platform.startswith("win"):