diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a38bbf47..c17b2bc0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -77,6 +77,12 @@ repos: - id: disallow-caps name: Disallow improper capitalization language: pygrep - entry: PyBind|Numpy|Cmake|Github + entry: PyBind|Numpy|Cmake|Github|PyTest types: - markdown + +- repo: https://github.com/codespell-project/codespell + rev: v2.1.0 + hooks: + - id: codespell + args: ["-L", "sur"] diff --git a/cibuildwheel/util.py b/cibuildwheel/util.py index 3fb47ef3..079cc53d 100644 --- a/cibuildwheel/util.py +++ b/cibuildwheel/util.py @@ -144,8 +144,8 @@ class Unbuffered: self.stream.write(data) self.stream.flush() - def writelines(self, datas): # type: ignore - self.stream.writelines(datas) + def writelines(self, data): # type: ignore + self.stream.writelines(data) self.stream.flush() def __getattr__(self, attr): # type: ignore diff --git a/docs/contributing.md b/docs/contributing.md index 3cd7e729..526c46ee 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -20,7 +20,7 @@ Design Goals Other notes: -- The platforms are very similar, until they're not. I'd rather have straight-forward code than totally DRY code, so let's keep airy platfrom abstractions to a minimum. +- The platforms are very similar, until they're not. I'd rather have straight-forward code than totally DRY code, so let's keep airy platform abstractions to a minimum. - I might want to break the options into a shared config file one day, so that config is more easily shared. That has motivated some of the design decisions. ### cibuildwheel's relationship with build errors diff --git a/docs/extra.css b/docs/extra.css index 4ed1e23d..89eb024d 100644 --- a/docs/extra.css +++ b/docs/extra.css @@ -148,7 +148,7 @@ h1, h2, h3, h4, h5, h6 { } .tabs-header button:focus-visible { - /* preserve an outline for accesibility purposes */ + /* preserve an outline for accessibility purposes */ outline: 1px solid currentColor; outline-offset: -1px; } diff --git a/docs/faq.md b/docs/faq.md index 8dc36107..bbac332d 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -16,7 +16,7 @@ If your wheel didn't compile, check the list below for some debugging tips. ### Building Python 2.7 / PyPy2 wheels -See the [cibuildwheel verison 1 docs](https://cibuildwheel.readthedocs.io/en/1.x/) for information about building Python 2.7 or PyPy2 wheels. There are lots of tricks and workaround there that are no longer required for Python 3 in cibuildwheel 2. +See the [cibuildwheel version 1 docs](https://cibuildwheel.readthedocs.io/en/1.x/) for information about building Python 2.7 or PyPy2 wheels. There are lots of tricks and workaround there that are no longer required for Python 3 in cibuildwheel 2. ### Linux builds on Docker diff --git a/docs/options.md b/docs/options.md index 539db4cf..144b6e94 100644 --- a/docs/options.md +++ b/docs/options.md @@ -240,7 +240,7 @@ See the [cibuildwheel 1 documentation](https://cibuildwheel.readthedocs.io/en/1. skip = "pp*" ``` - It is generally recommened to set `CIBW_BUILD` as an environment variable, though `skip` + It is generally recommended to set `CIBW_BUILD` as an environment variable, though `skip` tends to be useful in a config file; you can statically declare that you don't support pypy, for example. @@ -337,7 +337,7 @@ This option can also be set using the [command-line option](#command-line) `--ar archs = ["auto", "aarch64"] ``` - It is generally recommmended to use the environment variable or + It is generally recommended to use the environment variable or command-line option for Linux, as selecting archs often depends on your specific runner having qemu installed. @@ -841,7 +841,7 @@ Auditwheel detects the version of the manylinux standard in the Docker image thr ``` Like any other option, these can be placed in `[tool.cibuildwheel.linux]` - if you perfer; they have no effect on `macos` and `windows`. + if you prefer; they have no effect on `macos` and `windows`. ### `CIBW_DEPENDENCY_VERSIONS` {: #dependency-versions} > Specify how cibuildwheel controls the versions of the tools it uses @@ -1080,7 +1080,7 @@ Platform-specific environment variables are also available:
CIBW_TEST_EXTRAS: "test,qt" ``` - Seperate multiple items with a comma. + Separate multiple items with a comma. !!! tab examples "pyproject.toml" diff --git a/unit_test/environment_test.py b/unit_test/environment_test.py index c1ffef09..c5162aea 100644 --- a/unit_test/environment_test.py +++ b/unit_test/environment_test.py @@ -106,10 +106,12 @@ def test_substitution_with_backslash(): def test_awkwardly_quoted_variable(): environment_recipe = parse_environment( - 'VAR2=something"like this""$VAR1"$VAR1$(echo "theres more")"$(echo "and more!")"' + 'VAR2=something"like this""$VAR1"$VAR1$(echo "there is more")"$(echo "and more!")"' ) # pass the existing process env so PATH is available environment_dict = environment_recipe.as_dictionary({"VAR1": "but wait"}) - assert environment_dict.get("VAR2") == "somethinglike thisbut waitbut waittheres moreand more!" + assert ( + environment_dict.get("VAR2") == "somethinglike thisbut waitbut waitthere is moreand more!" + )