style: check spelling in pre-commit (#758)
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
+4
-4
@@ -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:<br/>
|
||||
CIBW_TEST_EXTRAS: "test,qt"
|
||||
```
|
||||
|
||||
Seperate multiple items with a comma.
|
||||
Separate multiple items with a comma.
|
||||
|
||||
!!! tab examples "pyproject.toml"
|
||||
|
||||
|
||||
@@ -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!"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user