File tree Expand file tree Collapse file tree 3 files changed +37
-6
lines changed Expand file tree Collapse file tree 3 files changed +37
-6
lines changed Original file line number Diff line number Diff line change
1
+ # Codespell configuration is within pyproject.toml
2
+ ---
3
+ name : Codespell
4
+
5
+ on :
6
+ push :
7
+ branches : [main]
8
+ pull_request :
9
+ branches : [main]
10
+
11
+ permissions :
12
+ contents : read
13
+
14
+ jobs :
15
+ codespell :
16
+ name : Check for spelling errors
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+ - name : Annotate locations with typos
23
+ uses : codespell-project/codespell-problem-matcher@v1
24
+ - name : Codespell
25
+ uses : codespell-project/actions-codespell@v2
Original file line number Diff line number Diff line change @@ -85,13 +85,20 @@ exclude_lines = [
85
85
" if TYPE_CHECKING:" ,
86
86
]
87
87
88
+ [tool .codespell ]
89
+ # Ref: https://github.com/codespell-project/codespell#using-a-config-file
90
+ skip = ' .git*'
91
+ check-hidden = true
92
+ # ignore-regex = ''
93
+ # ignore-words-list = ''
94
+
88
95
[tool .ruff ]
89
96
line-length = 88
90
97
indent-width = 4
91
98
[tool .ruff .lint ]
92
99
ignore = [
93
100
# Avoid use of `from __future__ import annotations`
94
- # becaues it causes problem with Typer
101
+ # because it causes problem with Typer
95
102
" FA100"
96
103
]
97
104
[tool .ruff .lint .per-file-ignores ]
@@ -103,7 +110,6 @@ ignore = [
103
110
" PLR6301" ,
104
111
" S" ,
105
112
" TID252" ,
106
-
107
113
# Allow access to protected members in tests
108
114
" SLF001" ,
109
- ]
115
+ ]
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def to_sorted_lst(
118
118
self ._sb = SchemaBuilder (name , id_ )
119
119
120
120
# This changes to True after this generator generates a schema
121
- # (for preventing issues caused by accidental re-use
121
+ # (for preventing issues caused by accidental reuse
122
122
# of this generator). See class docstring for more info.
123
123
self ._used = False
124
124
@@ -326,7 +326,7 @@ def attach_note(note: str) -> None:
326
326
overridden_field_slot_rep , overriding_field_slot_rep
327
327
)
328
328
except SlotExtensionError as e :
329
- # Attache needed note
329
+ # Attach needed note
330
330
missing_substr = (
331
331
f"lacks meta slots: { e .missing_meta_slots } "
332
332
if e .missing_meta_slots
@@ -387,7 +387,7 @@ def __init__(self, field_schema: FieldSchema):
387
387
self ._schema_type_to_method = self ._build_schema_type_to_method ()
388
388
389
389
# This changes to True after this generator generates a slot schema
390
- # (for preventing issues caused by accidental re-use
390
+ # (for preventing issues caused by accidental reuse
391
391
# of this generator). See class docstring for more info.
392
392
self ._used : bool = False
393
393
You can’t perform that action at this time.
0 commit comments