Skip to content

Commit 14856da

Browse files
committed
Refactor with a pure Python spell checker
This is a major re-write of the code. It now uses pyspellchecker, a pure Python package, replacing pyenchant, which required the C enchant library underneath. Also code has been re-organized to make seperate functions into smaller, more manageable parts and to adhere to Pylint's coding standards.
1 parent dab4e11 commit 14856da

File tree

11 files changed

+433
-212
lines changed

11 files changed

+433
-212
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ repos:
1111
- id: check-added-large-files
1212
args: ['--maxkb=200']
1313
- repo: https://github.com/psf/black
14-
rev: 23.3.0
14+
rev: 25.1.0
1515
hooks:
1616
- id: black
1717
args: ['--check', '--diff']
1818
- repo: https://github.com/pycqa/flake8
19-
rev: 6.0.0
19+
rev: 7.0.0
2020
hooks:
2121
- id: flake8
2222
entry: pflake8

comment_spell_check/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""comment_spell_check"""
2+
3+
from comment_spell_check import comment_spell_check
4+
5+
6+
def main():
7+
"""Entry point for the application script"""
8+
comment_spell_check.main()

0 commit comments

Comments
 (0)