Skip to content

Commit f7bbfd4

Browse files
authored
Add codespell config and workflow + just few typo fixes (#1166)
* Add codespell config to ignore some hits etc
1 parent bec9a8d commit f7bbfd4

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.codespellrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[codespell]
2+
skip = *.css*,.git,build
3+
# many short "words-like" non-words are used in the project as variables/args
4+
# hel - used in a test, cannot exclude in-line yet
5+
# cachable - historically happened
6+
# falsy - too cute although used only once and could be made strict bool
7+
# doas - used as argument to some call in WebHDFS
8+
ignore-words-list = fo,dne,fro,hel,cachable,falsy,doas

.github/workflows/codespell.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Codespell
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
jobs:
11+
codespell:
12+
name: Check for spelling errors
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Codespell
19+
uses: codespell-project/actions-codespell@v1

fsspec/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def register_implementation(name, cls, clobber=True, errtxt=None):
183183
"class": "fsspec_xrootd.XRootDFileSystem",
184184
"err": "Install fsspec-xrootd to access xrootd storage system."
185185
+ " Note: 'root' is the protocol name for xrootd storage systems,"
186-
+ " not refering to root directories",
186+
+ " not referring to root directories",
187187
},
188188
}
189189

versioneer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command):
728728
# TAG-NUM-gHEX
729729
mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe)
730730
if not mo:
731-
# unparseable. Maybe git-describe is misbehaving?
731+
# unparsable. Maybe git-describe is misbehaving?
732732
pieces["error"] = ("unable to parse git-describe output: '%%s'"
733733
%% describe_out)
734734
return pieces
@@ -1239,7 +1239,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command):
12391239
# TAG-NUM-gHEX
12401240
mo = re.search(r"^(.+)-(\d+)-g([0-9a-f]+)$", git_describe)
12411241
if not mo:
1242-
# unparseable. Maybe git-describe is misbehaving?
1242+
# unparsable. Maybe git-describe is misbehaving?
12431243
pieces["error"] = "unable to parse git-describe output: '%s'" % describe_out
12441244
return pieces
12451245

0 commit comments

Comments
 (0)