aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-08-12 14:20:35 +0200
committerMartin Czygan <martin.czygan@gmail.com>2020-08-12 14:20:35 +0200
commitf96c3d0d025ad37836eb908d561b0c607a1f7b5e (patch)
tree20d03897e04d3cf773492791a2f8bd9b4009800c
parent22bf2f4db51937fff2d04e9f8f40d57ed19f48e3 (diff)
downloadfuzzycat-f96c3d0d025ad37836eb908d561b0c607a1f7b5e.tar.gz
fuzzycat-f96c3d0d025ad37836eb908d561b0c607a1f7b5e.zip
adjust formatting
-rw-r--r--fuzzycat/matching.py3
-rw-r--r--setup.py5
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",