diff options
author | luzpaz <luzpaz@users.noreply.github.com> | 2022-04-15 19:06:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 02:06:34 +0300 |
commit | d262181bede5241a6b692c3245a77e2eb02bc262 (patch) | |
tree | f7e810127713e4969532d37a6a40715858575d4c | |
parent | 732878f1b4253732d7892159a343bc487c3f1f28 (diff) |
Fix typos (user-facing and non-user-facing) (#1357)
* Fix typos (user-facing and non-user-facing
Found via `codespell -q 3 -L datas,medias,warmup`
* Fix source typo found in tests/
-rw-r--r-- | .github/workflows/release-snap.yml | 2 | ||||
-rw-r--r-- | extras/packaging/linux/README.md | 2 | ||||
-rw-r--r-- | extras/profiling/README.md | 4 | ||||
-rw-r--r-- | extras/profiling/benchmarks.py | 2 | ||||
-rw-r--r-- | httpie/context.py | 2 | ||||
-rw-r--r-- | httpie/manager/tasks/plugins.py | 2 | ||||
-rw-r--r-- | httpie/plugins/manager.py | 2 | ||||
-rw-r--r-- | tests/test_cli_utils.py | 4 | ||||
-rw-r--r-- | tests/test_plugins_cli.py | 2 | ||||
-rw-r--r-- | tests/utils/__init__.py | 4 |
10 files changed, 13 insertions, 13 deletions
diff --git a/.github/workflows/release-snap.yml b/.github/workflows/release-snap.yml index afb22e84..c415edd7 100644 --- a/.github/workflows/release-snap.yml +++ b/.github/workflows/release-snap.yml @@ -15,7 +15,7 @@ jobs: strategy: # If any of the stages fail, then we'll stop the action - # to give release manager time to investigate the underyling + # to give release manager time to investigate the underlying # issue. fail-fast: true matrix: diff --git a/extras/packaging/linux/README.md b/extras/packaging/linux/README.md index a62e4dc5..2958dfae 100644 --- a/extras/packaging/linux/README.md +++ b/extras/packaging/linux/README.md @@ -23,7 +23,7 @@ contains 2 major methods: We use [PyInstaller](https://pyinstaller.readthedocs.io/en/stable/) for the binaries. Normally pyinstaller offers two different modes: -- Single directory (harder to distribute, low redundancy. Library files are shared accross different executables) +- Single directory (harder to distribute, low redundancy. Library files are shared across different executables) - Single binary (easier to distribute, higher redundancy. Same libraries are statically linked to different executables, so higher total size) Since our binary size (in total 20 MiBs) is not that big, we have decided to choose the single binary mode for the sake of easier distribution. diff --git a/extras/profiling/README.md b/extras/profiling/README.md index c2487de4..0eef8166 100644 --- a/extras/profiling/README.md +++ b/extras/profiling/README.md @@ -1,7 +1,7 @@ # HTTPie Benchmarking Infrastructure This directory includes the benchmarks we use for testing HTTPie's speed and the -infrastructure to automate this testing accross versions. +infrastructure to automate this testing across versions. ## Usage @@ -35,5 +35,5 @@ You can customize these branches by passing `--local-repo`/`--target-branch`, and customize the repos by passing `--local-repo`/`--target-repo` (can either take a URL or a path). -If you want to run a third enviroment with additional dependencies (such as +If you want to run a third environment with additional dependencies (such as `pyOpenSSL`), you can pass `--complex`. diff --git a/extras/profiling/benchmarks.py b/extras/profiling/benchmarks.py index 5d47a3a1..ede4915f 100644 --- a/extras/profiling/benchmarks.py +++ b/extras/profiling/benchmarks.py @@ -21,7 +21,7 @@ Examples: $ python extras/profiling/benchmarks.py --fast # For verify everything works as expected, pass --debug-single-value. - # It will only run everything once, so the resuls are not realiable. But + # It will only run everything once, so the resuls are not reliable. But # very useful when iterating on a benchmark $ python extras/profiling/benchmarks.py --debug-single-value diff --git a/httpie/context.py b/httpie/context.py index 44aedd42..da4d1925 100644 --- a/httpie/context.py +++ b/httpie/context.py @@ -205,7 +205,7 @@ class Environment: theme=Theme(theme) ) - # Rich recommends separting the actual console (stdout) from + # Rich recommends separating the actual console (stdout) from # the error (stderr) console for better isolation between parts. # https://rich.readthedocs.io/en/stable/console.html#error-console diff --git a/httpie/manager/tasks/plugins.py b/httpie/manager/tasks/plugins.py index a0180537..c3c7d540 100644 --- a/httpie/manager/tasks/plugins.py +++ b/httpie/manager/tasks/plugins.py @@ -165,7 +165,7 @@ class PluginInstaller: return self.fail('uninstall', target, 'couldn\'t locate the package') # TODO: Consider handling failures here (e.g if it fails, - # just rever the operation and leave the site-packages + # just revert the operation and leave the site-packages # in a proper shape). for file in files: with suppress(FileNotFoundError): diff --git a/httpie/plugins/manager.py b/httpie/plugins/manager.py index 0a25f320..27af6eed 100644 --- a/httpie/plugins/manager.py +++ b/httpie/plugins/manager.py @@ -70,7 +70,7 @@ class PluginManager(list): plugin = entry_point.load() except BaseException as exc: warnings.warn( - f'While loading "{plugin_name}", an error ocurred: {exc}\n' + f'While loading "{plugin_name}", an error occurred: {exc}\n' f'For uninstallations, please use either "httpie plugins uninstall {plugin_name}" ' f'or "pip uninstall {plugin_name}" (depending on how you installed it in the first ' 'place).' diff --git a/tests/test_cli_utils.py b/tests/test_cli_utils.py index 2ea319d8..8041727b 100644 --- a/tests/test_cli_utils.py +++ b/tests/test_cli_utils.py @@ -28,7 +28,7 @@ def test_lazy_choices(): cache=False # for test purposes ) - # Parser initalization doesn't call it. + # Parser initialization doesn't call it. getter.assert_not_called() # If we don't use --lazy-option, we don't retrieve it. @@ -69,7 +69,7 @@ def test_lazy_choices_help(): cache=False # for test purposes ) - # Parser initalization doesn't call it. + # Parser initialization doesn't call it. getter.assert_not_called() # If we don't use `--help`, we don't use it. diff --git a/tests/test_plugins_cli.py b/tests/test_plugins_cli.py index 7be110de..28057923 100644 --- a/tests/test_plugins_cli.py +++ b/tests/test_plugins_cli.py @@ -138,7 +138,7 @@ def test_broken_plugins(httpie_plugins, httpie_plugins_success, dummy_plugin, br UserWarning, match=( f'While loading "{broken_plugin.name}", an error' - ' ocurred: broken plugin' + ' occurred: broken plugin' ) ): data = parse_listing(httpie_plugins_success('list')) diff --git a/tests/utils/__init__.py b/tests/utils/__init__.py index 79cafa07..8a575aef 100644 --- a/tests/utils/__init__.py +++ b/tests/utils/__init__.py @@ -83,7 +83,7 @@ class Encoder: def __init__(self): self.substitutions = {} - def subsitute(self, data: bytes) -> str: + def substitute(self, data: bytes) -> str: idx = hash(data) self.substitutions[idx] = data return self.TEMPLATE.format(idx) @@ -110,7 +110,7 @@ class FakeBytesIOBuffer(BytesIO): try: self.original_buffer.write(data.decode(UTF8)) except UnicodeDecodeError: - self.original_buffer.write(self.encoder.subsitute(data)) + self.original_buffer.write(self.encoder.substitute(data)) finally: self.original_buffer.flush() |