Skip to content

Commit 3028f07

Browse files
authored
Lint: Check spelling on CI but don't fail (#3080)
Check spelling on CI (no fail), fix typo in docs, ignore some others
1 parent 39a9c46 commit 3028f07

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.codespell/exclude-file.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@
77

88
Error-de_DE=Wenn ist das Nunstück git und Slotermeyer?
99
Ja! Beiherhund das Oder die Virtualenvironment gersput!
10+
11+
<https://devguide.python.org/pullrequest/#licensing>`__
12+
13+
class ClassE[T: [str, int]]: ... # Type checker error: illegal expression form
14+
class ClassE[T: t1]: ... # Type checker error: literal tuple expression required
15+
16+
explicitly declared using ``in``, ``out`` and ``inout`` keywords.
17+
| | | | | | | inout |

.codespell/ignore-words.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ ba
66
clos
77
complies
88
crate
9+
dedented
910
extraversion
11+
falsy
1012
fo
1113
iif
1214
nd

.github/workflows/lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ jobs:
1818

1919
- name: Run pre-commit hooks
2020
uses: pre-commit/action@v3.0.0
21+
22+
- name: Check spelling
23+
uses: pre-commit/action@v3.0.0
24+
with:
25+
extra_args: --all-files --hook-stage manual codespell || true

docs/rendering_system.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ the footer (source link and last modified timestamp).
153153
3.5 Prepare for writing
154154
''''''''''''''''''''''''
155155

156-
``pep_html_builder.FileBuilder.prepare_writing`` initialises the bare miniumum
156+
``pep_html_builder.FileBuilder.prepare_writing`` initialises the bare minimum
157157
of the Docutils writer and the settings for writing documents.
158158
This provides a significant speed-up over the base Sphinx implementation, as
159159
most of the data automatically initialised was unused.

0 commit comments

Comments
 (0)