Skip to content

Commit 058c918

Browse files
authored
Fix typos discovered by codespell and add codespell to pre-commit (#143)
1 parent 0b4f649 commit 058c918

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-22.04
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
with:
1515
fetch-depth: 0
1616

17-
- uses: actions/setup-python@v5
17+
- uses: actions/setup-python@v6
1818
with:
1919
python-version: 3.x
2020

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ repos:
44
hooks:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
7+
- repo: https://github.com/codespell-project/codespell
8+
rev: v2.4.1
9+
hooks:
10+
- id: codespell
11+
additional_dependencies:
12+
- tomli
713
- repo: https://github.com/rstcheck/rstcheck
814
rev: v6.2.5
915
hooks:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ those fixtures are shared between threads.
7272
adding support for Python 3.14 to a library that already
7373
runs tests under pytest-run-parallel on Python 3.13 or
7474
older.
75-
- `--mark-hypothesis-as-unsafe` to always skip runing tests that
75+
- `--mark-hypothesis-as-unsafe` to always skip running tests that
7676
use [hypothesis](https://github.com/hypothesisworks/hypothesis).
7777
While newer version of Hypothesis are thread-safe, and versions
7878
which are not are automatically skipped by `pytest-run-parallel`,
@@ -134,7 +134,7 @@ back to running all tests single-threaded.
134134
## Requirements
135135

136136
`pytest-run-parallel` depends exclusively on `pytest`. Optionally
137-
intalling `psutil` will help with identifying the number of logical
137+
installing `psutil` will help with identifying the number of logical
138138
cores available to the testing process in systems where that's not
139139
possible with the Python stdlib.
140140

@@ -315,7 +315,7 @@ def test_skip_if_parallel(num_parallel_threads):
315315
...
316316
```
317317

318-
The `thread_index` and `iteration_index` fixtures are also avaliable, which enable
318+
The `thread_index` and `iteration_index` fixtures are also available, which enable
319319
tests to display different behavior between threads and iterations.
320320

321321
```python

0 commit comments

Comments
 (0)