Skip to content

Commit 8ebda64

Browse files
authored
Merge pull request #17 from dave3d/UpdateReadme
Updated README and added Markdown support
2 parents f010dce + 810f61b commit 8ebda64

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ If a word is not found in the dictionaries, we try two additional checks.
3232
...camel-case words such as 'GetArrayFromImage', which would get split into
3333
...'Get', 'Array', 'From', and 'Image'. Camel-case words are very commonly
3434
...used for code elements.
35+
36+
The script can also process other file types. With the **'--suffix'**
37+
option, the following file types are available: Python (.py), C/C++
38+
(.c/.cxx), Text (.txt), reStructuredText(.rst), Markdown (.md), Ruby (.ruby),
39+
and Java (.java). Note that reStructuredText files are treated as standard
40+
text. Consequentially, all markup keywords that are not actual words will
41+
need to be added to the additional/exception dictionary.

additional_dictionary.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ clientdata
923923
closedness
924924
codebook
925925
codebooks
926+
codespell
926927
codeword
927928
codewords
928929
codimension
@@ -1165,6 +1166,7 @@ getsizeof
11651166
getter
11661167
ggplot
11671168
gimble
1169+
github
11681170
globals
11691171
gmail
11701172
goodbit
@@ -1560,6 +1562,7 @@ public
15601562
putback
15611563
pv
15621564
py
1565+
pyenchant
15631566
pyplot
15641567
qe
15651568
ql
@@ -1612,6 +1615,7 @@ rot90
16121615
royalblue
16131616
rshift
16141617
rsplit
1618+
rst
16151619
rstrip
16161620
runtime
16171621
rval
@@ -1722,6 +1726,7 @@ superpixel
17221726
supersampling
17231727
superset
17241728
svd
1729+
svg
17251730
swapaxes
17261731
sweepline
17271732
switch
@@ -1885,6 +1890,7 @@ xyz
18851890
xz
18861891
ymax
18871892
ymin
1893+
yml
18881894
yn
18891895
yy
18901896
yyy

tests/test_codespell.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def test_codespell(self):
4040
"--verbose",
4141
"--suffix",
4242
".py",
43+
"--suffix",
44+
".md",
4345
"."
4446
]
4547
)

0 commit comments

Comments
 (0)