From d9a73cd8eb66de4e6f75a0c883d6b29f4eea3831 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Sat, 1 Oct 2022 18:34:41 +0800 Subject: [PATCH] Fix typos (#1431) Found via `codespell -L datas`. --- docs/contributors/README.md | 2 +- docs/installation/generate.py | 2 +- extras/profiling/benchmarks.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/contributors/README.md b/docs/contributors/README.md index 20b3c278..9a739cd5 100644 --- a/docs/contributors/README.md +++ b/docs/contributors/README.md @@ -1,3 +1,3 @@ -Here we maintain a database of contributors, from which we generate credits on release blog posts and social medias. +Here we maintain a database of contributors, from which we generate credits on release blog posts and social media. For the HTTPie blog see: . diff --git a/docs/installation/generate.py b/docs/installation/generate.py index a67389dd..0597a3a4 100644 --- a/docs/installation/generate.py +++ b/docs/installation/generate.py @@ -55,7 +55,7 @@ def build_docs_structure(database: Database): tree = database[KEY_DOC_STRUCTURE] structure = [] for platform, tools_ids in tree.items(): - assert platform.isalnum(), f'{platform=} must be alpha-numeric for generated links to work' + assert platform.isalnum(), f'{platform=} must be alphanumeric for generated links to work' platform_tools = [tools[tool_id] for tool_id in tools_ids] structure.append((platform, platform_tools)) return structure diff --git a/extras/profiling/benchmarks.py b/extras/profiling/benchmarks.py index c7374f6a..9d409deb 100644 --- a/extras/profiling/benchmarks.py +++ b/extras/profiling/benchmarks.py @@ -13,7 +13,7 @@ please run `pyperf system tune` to get even more accurate results. Examples: - # Run everything as usual, the default is that we do 3 warmup runs + # Run everything as usual, the default is that we do 3 warm-up runs # and 5 actual runs. $ python extras/profiling/benchmarks.py @@ -188,7 +188,7 @@ DownloadRunner('download', '`http --download :/big_file.txt` (3GB)', '3G') def main() -> None: # PyPerf will bring it's own argument parser, so configure the script. # The somewhat fast and also precise enough configuration is this. We run - # benchmarks 3 times to warmup (e.g especially for download benchmark, this + # benchmarks 3 times to warm up (e.g especially for download benchmark, this # is important). And then 5 actual runs where we record. sys.argv.extend( ['--worker', '--loops=1', '--warmup=3', '--values=5', '--processes=2']