Skip to content

Commit 277632c

Browse files
authored
Fix typos discovered by codespell (#3113)
1 parent f54c21c commit 277632c

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,25 @@ repos:
88
rev: 23.7.0
99
hooks:
1010
- id: black
11+
- repo: https://github.com/codespell-project/codespell
12+
rev: v2.2.5
13+
hooks:
14+
- id: codespell
15+
args: ["--ignore-words-list", "crate,releas", "--skip", "*.svg"]
16+
additional_dependencies:
17+
- tomli
1118
- repo: https://github.com/tox-dev/tox-ini-fmt
12-
rev: "1.3.1"
19+
rev: 1.3.1
1320
hooks:
1421
- id: tox-ini-fmt
1522
args: ["-p", "fix"]
1623
- repo: https://github.com/tox-dev/pyproject-fmt
17-
rev: "1.1.0"
24+
rev: 1.1.0
1825
hooks:
1926
- id: pyproject-fmt
2027
additional_dependencies: ["tox>=4.10"]
2128
- repo: https://github.com/pre-commit/mirrors-prettier
22-
rev: "v3.0.3"
29+
rev: v3.0.3
2330
hooks:
2431
- id: prettier
2532
args: ["--print-width=120", "--prose-wrap=always"]
@@ -29,7 +36,7 @@ repos:
2936
- id: blacken-docs
3037
additional_dependencies: [black==23.7]
3138
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: "v0.0.287"
39+
rev: v0.0.287
3340
hooks:
3441
- id: ruff
3542
args: [--fix, --exit-non-zero-on-fix]

docs/changelog.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ v4.6.0 (2023-06-05)
114114

115115
Features - 4.6.0
116116
~~~~~~~~~~~~~~~~
117-
- Addded ``--list-dependencies`` and ``--no-list-dependencies`` CLI parameters.
117+
- Added ``--list-dependencies`` and ``--no-list-dependencies`` CLI parameters.
118118
If unspecified, defaults to listing when in CI, but not otherwise. (:issue:`3024`)
119119

120120
Misc - 4.6.0
@@ -273,7 +273,7 @@ Bugfixes - 4.4.0
273273
esoteric quoting.
274274

275275
To make this transition easier, on Windows, the backslash path separator will not treated as an escape character unless
276-
it preceeds a quote, whitespace, or another backslash chracter. This allows paths to mostly be written in single or
276+
it precedes a quote, whitespace, or another backslash character. This allows paths to mostly be written in single or
277277
double backslash style.
278278

279279
Note that **double-backslash will no longer be escaped to a single backslash in substitutions**, instead the double
@@ -338,7 +338,7 @@ v4.3.2 (2023-01-16)
338338

339339
Bugfixes - 4.3.2
340340
~~~~~~~~~~~~~~~~
341-
- Fix regression introduced in 4.3.0 which occured when a substitution expression
341+
- Fix regression introduced in 4.3.0 which occurred when a substitution expression
342342
for an environment variable that had previously been substituted appears in the
343343
ini file after a substitution expression for a different environment variable.
344344
This situation erroneously resulted in an exception about "circular chain

docs/changelog/3113.misc.rst

Whitespace-only changes.

docs/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ It's possible to inject a config value only when tox is running in interactive s
935935
{tty:ON_VALUE:OFF_VALUE}
936936

937937
The first value is the value to inject when the interactive terminal is
938-
available, the second value is the value to use when it's not (optiona). A good
938+
available, the second value is the value to use when it's not (optional). A good
939939
use case for this is e.g. passing in the ``--pdb`` flag for pytest.
940940

941941
.. _`command positional substitution`:

src/tox/tox_env/python/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def version_dot(self) -> str:
5050
PY_FACTORS_RE = re.compile(
5151
r"""
5252
^(?!py$) # don't match 'py' as it doesn't provide any info
53-
(?P<impl>py|pypy|cpython|jython|rustpython|ironpython) # the interpeter; most users will simply use 'py'
53+
(?P<impl>py|pypy|cpython|jython|rustpython|ironpython) # the interpreter; most users will simply use 'py'
5454
(?P<version>[2-9]\.?[0-9]?[0-9]?)?$ # the version; one of: MAJORMINOR, MAJOR.MINOR
5555
""",
5656
re.VERBOSE,

src/tox/tox_env/python/pip/pip_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _register_config(self) -> None:
5858
keys=["list_dependencies_command"],
5959
of_type=Command,
6060
default=Command(["python", "-m", "pip", "freeze", "--all"]),
61-
desc="command used to list isntalled packages",
61+
desc="command used to list installed packages",
6262
)
6363

6464
def default_install_command(self, conf: Config, env_name: str | None) -> Command: # noqa: ARG002

0 commit comments

Comments
 (0)