Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos discovered by codespell #666

Merged
merged 2 commits into from
Nov 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@ jobs:
- uses: actions/setup-python@v2
- uses: psf/black@21.4b0
with:
args: ". --check"
args: ". --check"
- uses: codespell-project/actions-codespell@master
with:
ignore_words_list: crate
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Better cross compiling support for PyO3 binding on Unix in [#454](https://github.com/PyO3/maturin/pull/454)
* Fix s390x architecture support in [#530](https://github.com/PyO3/maturin/pull/530)
* Fix auditwheel panic with s390x wheels in [#532](https://github.com/PyO3/maturin/pull/532)
* Support uploading heterogenous wheels by ravenexp in [#544](https://github.com/PyO3/maturin/pull/544)
* Support uploading heterogeneous wheels by ravenexp in [#544](https://github.com/PyO3/maturin/pull/544)
* Warn about `pyproject.toml` missing maturin version constraint in [#545](https://github.com/PyO3/maturin/pull/545)

## [0.10.4] - 2021-04-28
Expand Down
2 changes: 1 addition & 1 deletion src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn compile_target(
format!("{base}.abi3.so", base = module_name)
}
};
// Change LC_ID_DYLIB to the finaly .so name for macOS targets to avoid linking with
// Change LC_ID_DYLIB to the final .so name for macOS targets to avoid linking with
// non-existent library.
// See https://github.com/PyO3/setuptools-rust/issues/106 for detail
let macos_dylib_install_name = format!("link-args=-Wl,-install_name,@rpath/{}", so_filename);
Expand Down
2 changes: 1 addition & 1 deletion src/cross_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fn ends_with(entry: &DirEntry, pat: &str) -> bool {
/// pybuilddir = 'build/lib.%s-%s' % (get_platform(), sys.version_info[:2])
/// ```
///
/// Where get_platform returns a kebab-case formated string containing the os, the architecture and
/// Where get_platform returns a kebab-case formatted string containing the os, the architecture and
/// possibly the os' kernel version (not the case on linux). However, when installed using a package
/// manager, the `_sysconfigdata*.py` file is installed in the `${PREFIX}/lib/python3.Y/` directory.
/// The `_sysconfigdata*.py` is generally in a sub-directory of the location of `libpython3.Y.so`.
Expand Down
2 changes: 1 addition & 1 deletion src/module_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub struct PathWriter {
}

impl PathWriter {
/// Creates a [ModuleWriter] that adds the modul to the current virtualenv
/// Creates a [ModuleWriter] that adds the module to the current virtualenv
pub fn venv(target: &Target, venv_dir: &Path, bridge: &BridgeModel) -> Result<Self> {
let interpreter =
PythonInterpreter::check_executable(target.get_venv_python(&venv_dir), target, bridge)?
Expand Down
2 changes: 1 addition & 1 deletion src/python_interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ impl PythonInterpreter {
Ok(available_versions)
}

/// Checks that given list of executables are all valid python intepreters,
/// Checks that given list of executables are all valid python interpreters,
/// determines the abiflags and versions of those interpreters and
/// returns them as [PythonInterpreter]
pub fn check_executables(
Expand Down
2 changes: 1 addition & 1 deletion src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Target {
Arch::Powerpc64 => "powerpc64",
Arch::Powerpc64Le => "powerpc64le",
_ => panic!(
"unsupported architecutre should not have reached get_platform_tag()"
"unsupported architecture should not have reached get_platform_tag()"
),
};
format!(
Expand Down
2 changes: 1 addition & 1 deletion test-crates/pyo3-no-extension-module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["konstin <konstin@mailbox.org>"]
name = "pyo3-no-extension-module"
version = "2.1.0"
description = "Does not use the extension-module feature, thus errorneously linking libpython"
description = "Does not use the extension-module feature, thus erroneously linking libpython"
edition = "2021"

[dependencies]
Expand Down