Skip to content

Commit b73761d

Browse files
author
oykusuoglu
committed
edit distance without tests
1 parent cb5723a commit b73761d

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ build-backend = "hatchling.build"
33
requires = [ "hatchling" ]
44

55
[project]
6-
name = "firstTask"
6+
name = "firsttask"
77
version = "0.0.1"
88
description = "Calculating the edit distance"
99
readme = "README.md"

src/myeditdistance/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
__all__ = ["pl", "pp", "tl"]
66

7-
__version__ = version("firstTask")
7+
__version__ = version("firsttask")
8+
9+
10+
def edit_distance(string1, string2):
11+
return tl.edit_distance(string1, string2)

src/myeditdistance/tl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .basic import basic_tool
1+
from .calculation import edit_distance
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import myeditdistance as calc
1+
import myeditdistance as ed
22

3-
print(calc.edit_distance("kitten", "sitting"))
3+
print(ed.edit_distance("kitten", "sitting"))

0 commit comments

Comments
 (0)