From f96c3d0d025ad37836eb908d561b0c607a1f7b5e Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 12 Aug 2020 14:20:35 +0200 Subject: adjust formatting --- fuzzycat/matching.py | 3 ++- setup.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py index 7fe2fd6..cbadbc2 100644 --- a/fuzzycat/matching.py +++ b/fuzzycat/matching.py @@ -140,7 +140,8 @@ def match_container_names(a: str, b: str) -> MatchStatus: return MatchStatus.WEAK # Address e.g. a char flip, but only, if we do not have diacritics. - if (not asa["is_short_string"] and not asa["is_single_token"] and not asa["has_diacritics"] and hamming_distance(a, b) < 2): + if (not asa["is_short_string"] and not asa["is_single_token"] and not asa["has_diacritics"] + and hamming_distance(a, b) < 2): return MatchStatus.STRONG return MatchStatus.AMBIGIOUS diff --git a/setup.py b/setup.py index 0e1573b..d92432f 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,10 @@ with open("README.md", "r") as fh: ], python_requires=">=3.6", zip_safe=False, - entry_points={"console_scripts": ["fuzzycat=fuzzycat.main:main",],}, + entry_points={"console_scripts": [ + "fuzzycat=fuzzycat.main:main", + "fuzzycat-issn=fuzzycat.issn:main", + ],}, install_requires=[ "ftfy", "fatcat-openapi-client", -- cgit v1.2.3