Skip to content

Commit

Permalink
Major release prep (#113)
Browse files Browse the repository at this point in the history
* small fix

* Fix typo

* configure spell checking

* Change classifier to Production/Stable
  • Loading branch information
derlih authored Dec 14, 2024
1 parent 077001c commit 14fc492
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ repos:
rev: v0.14.0
hooks:
- id: yamlfmt
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.16.1
hooks:
- id: cspell
6 changes: 1 addition & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"cSpell.words": [
"typer",
"кошка"
]
"python.testing.pytestEnabled": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
![CI](https://github.com/derlih/levdist/actions/workflows/ci.yml/badge.svg)
[![codecov](https://codecov.io/gh/derlih/levdist/graph/badge.svg?token=S63YTJUSN3)](https://codecov.io/gh/derlih/levdist)

A Python package to calculate the Levinstein distance algorithm implementation with non-GPL license, typing and speedups.
A Python package to calculate the Levenstein distance algorithm implementation with non-GPL license, typing and speedups.
The implementation is based on code samples from [Levenstein Wiki](https://en.wikipedia.org/wiki/Levenshtein_distance).

## Installation
Expand Down
28 changes: 28 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: "0.2"
language:
- en
- ru
ignorePaths:
- pdm.lock
- .gitignore
dictionaries:
- en_us
- python
- python-common
- cpp
words:
- fcoverage
- levdist
- Erlikh
- nativemodule
- zizmor
- yamlfmt
- Levenstein
- кошка
- xcrun
- cibuildwheel
- choco
- pypa
- CIBW
- ARCHS
- pwsh
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
license = { text = "MIT" }
keywords = ["levenstein", "edit distance"]
classifiers = [
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Typing :: Typed",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down
3 changes: 1 addition & 2 deletions src/levdist/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import typing

from .classic import classic
from .wagner_fischer import wagner_fischer

if typing.TYPE_CHECKING:
levenshtein: typing.Callable[[str, str], int]
Expand All @@ -10,8 +11,6 @@

levenshtein = wagner_fischer_native
except ImportError:
from .wagner_fischer import wagner_fischer

levenshtein = wagner_fischer

__all__ = ["classic", "levenshtein", "wagner_fischer"]

0 comments on commit 14fc492

Please sign in to comment.