Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH -- Bump Supported Python Versions to 3.9+ #101

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Contextual word checker for better suggestions

[![license](https://img.shields.io/github/license/r1j1t/contextualSpellCheck)](https://github.com/R1j1t/contextualSpellCheck/blob/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/contextualSpellCheck?color=green)](https://pypi.org/project/contextualSpellCheck/)
[![Python-Version](https://img.shields.io/badge/Python-3.6+-green)](https://github.com/R1j1t/contextualSpellCheck#install)
[![Python-Version](https://img.shields.io/badge/Python-3.9+-green)](https://github.com/R1j1t/contextualSpellCheck#install)
[![Downloads](https://pepy.tech/badge/contextualspellcheck/week)](https://pepy.tech/project/contextualspellcheck)
[![GitHub contributors](https://img.shields.io/github/contributors/r1j1t/contextualSpellCheck)](https://github.com/R1j1t/contextualSpellCheck/graphs/contributors)
[![Help Wanted](https://img.shields.io/badge/Help%20Wanted-Task%20List-violet)](https://github.com/R1j1t/contextualSpellCheck#task-list)
Expand Down
4 changes: 3 additions & 1 deletion contextualSpellCheck/contextualSpellCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def __init__(
debug_file_path = os.path.join(
current_path, "tests", "debugFile.txt"
)
with open(debug_file_path, "w+") as new_file:
with open(
debug_file_path, "w+", encoding="utf8"
) as new_file:
new_file.write("\n".join(words))
print("Final vocab at " + debug_file_path)

Expand Down
4 changes: 2 additions & 2 deletions contextualSpellCheck/tests/test_contextualSpellCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,8 @@ def test_vocab_file():
ContextualSpellCheck(
nlp, "contextualSpellCheck", vocab_path=testVocab, debug=True
)
with open(orgDebugFilePath) as f1:
with open(debugPathFile) as f2:
with open(orgDebugFilePath, encoding="utf8") as f1:
with open(debugPathFile, encoding="utf8") as f2:
assert f1.read() == f2.read()


Expand Down