Skip to content

Commit

Permalink
Fix typos found by codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Nov 20, 2022
1 parent 59ee498 commit 20b135a
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/userguide/development_mode.rst
Expand Up @@ -17,7 +17,7 @@ without requiring a new installation.

You can enter this "development mode" by performing an :doc:`editable installation
<pip:topics/local-project-installs>` inside of a :term:`virtual environment`,
using :doc:`pip's <pip:cli/pip_install>` ``-e/--editable`` flag, as shown bellow:
using :doc:`pip's <pip:cli/pip_install>` ``-e/--editable`` flag, as shown below:

.. code-block:: bash
Expand Down Expand Up @@ -93,7 +93,7 @@ expectations:
Unfortunately these expectations are in conflict with each other.
To solve this problem ``setuptools`` allows developers to choose a more
*"strict"* mode for the editable installation. This can be done by passing
a special *configuration setting* via :pypi:`pip`, as indicated bellow:
a special *configuration setting* via :pypi:`pip`, as indicated below:

.. code-block:: bash
Expand Down
2 changes: 1 addition & 1 deletion launcher.c
Expand Up @@ -204,7 +204,7 @@ int create_and_wait_for_subprocess(char* command) {
ZeroMemory(&p_info, sizeof(p_info));
ZeroMemory(&s_info, sizeof(s_info));
s_info.cb = sizeof(STARTUPINFO);
// set-up control handler callback funciotn
// set-up control handler callback function
SetConsoleCtrlHandler((PHANDLER_ROUTINE) control_handler, TRUE);
if (!CreateProcessA(NULL, commandline, NULL, NULL, TRUE, 0, NULL, NULL, &s_info, &p_info)) {
fprintf(stderr, "failed to create process.\n");
Expand Down
2 changes: 1 addition & 1 deletion setuptools/_distutils/cygwinccompiler.py
Expand Up @@ -118,7 +118,7 @@ def __init__(self, verbose=0, dry_run=0, force=0):

@property
def gcc_version(self):
# Older numpy dependend on this existing to check for ancient
# Older numpy depended on this existing to check for ancient
# gcc versions. This doesn't make much sense with clang etc so
# just hardcode to something recent.
# https://github.com/numpy/numpy/pull/20333
Expand Down
2 changes: 1 addition & 1 deletion setuptools/_distutils/tests/test_build_ext.py
Expand Up @@ -158,7 +158,7 @@ def test_user_site(self):
cmd = self.build_ext(dist)

# making sure the user option is there
options = [name for name, short, lable in cmd.user_options]
options = [name for name, short, label in cmd.user_options]
assert 'user' in options

# setting a value
Expand Down
2 changes: 1 addition & 1 deletion setuptools/_distutils/tests/test_install.py
Expand Up @@ -100,7 +100,7 @@ def _expanduser(path):
cmd = install(dist)

# making sure the user option is there
options = [name for name, short, lable in cmd.user_options]
options = [name for name, short, label in cmd.user_options]
assert 'user' in options

# setting a value
Expand Down
2 changes: 1 addition & 1 deletion setuptools/_distutils/util.py
Expand Up @@ -228,7 +228,7 @@ def _subst(match):
import warnings

warnings.warn(
"shell/Perl-style substitions are deprecated",
"shell/Perl-style substitutions are deprecated",
DeprecationWarning,
)
return repl
Expand Down
2 changes: 1 addition & 1 deletion setuptools/_vendor/pyparsing/core.py
Expand Up @@ -3110,7 +3110,7 @@ def __init__(
)
quote_char = quoteChar or quote_char

# remove white space from quote chars - wont work anyway
# remove white space from quote chars - won't work anyway
quote_char = quote_char.strip()
if not quote_char:
raise ValueError("quote_char cannot be the empty string")
Expand Down
4 changes: 2 additions & 2 deletions setuptools/tests/test_build_meta.py
Expand Up @@ -44,7 +44,7 @@ def __init__(self, *args, **kwargs):
self.pool = futures.ProcessPoolExecutor(max_workers=1)

def __getattr__(self, name):
"""Handles aribrary function invocations on the build backend."""
"""Handles arbitrary function invocations on the build backend."""

def method(*args, **kw):
root = os.path.abspath(self.cwd)
Expand Down Expand Up @@ -79,7 +79,7 @@ def __init__(self, *args, **kwargs):
self.backend_obj) = self.backend_name.partition(':')

def __call__(self, name, *args, **kw):
"""Handles aribrary function invocations on the build backend."""
"""Handles arbitrary function invocations on the build backend."""
os.chdir(self.cwd)
os.environ.update(self.env)
mod = importlib.import_module(self.backend_name)
Expand Down

0 comments on commit 20b135a

Please sign in to comment.