Skip to content

Commit 9f2e3a4

Browse files
committed
v0.15.2: pyspellchecker 0.7.0 compatibility
1 parent 6dcf55a commit 9f2e3a4

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

dactyl/dactyl_style_checker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def check_spelling(self, passage, ignore_words=set()):
380380
if unknown:
381381
logger.info("Unknown/misspelled words: %s"%unknown)
382382

383-
return {w: list(self.spell.candidates(w)-{w})[:3] for w in unknown}
383+
return {w: list((self.spell.candidates(w) or set())-{w})[:3] for w in unknown}
384384

385385

386386

dactyl/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.15.1'
1+
__version__ = '0.15.2'

releasenotes.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v0.15.2 Release Notes
2+
3+
This release updates the style checker to be compatible with pyspellchecker version 0.7.0.
4+
15
# v0.15.1 Release Notes
26

37
This release fixes a bug that made "watch mode" and PDF builds not work on Windows because it assumed that `python3 -m http.server` would launch the simple Python HTTP server on those systems. The updated version should automatically detect the system's Python executable on all platforms.

requirements.txt

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ watchdog>=0.9.0
44
requests>=2.21.0
55
beautifulsoup4>=4.6.3
66
textstat>=0.6.2
7+
pyspellchecker>=0.7.0
8+
ruamel.yaml>=0.17.21
9+
Pygments>=2.13.0

0 commit comments

Comments
 (0)