diff options
| author | Martin Czygan <martin.czygan@gmail.com> | 2020-08-12 14:20:35 +0200 | 
|---|---|---|
| committer | Martin Czygan <martin.czygan@gmail.com> | 2020-08-12 14:20:35 +0200 | 
| commit | f96c3d0d025ad37836eb908d561b0c607a1f7b5e (patch) | |
| tree | 20d03897e04d3cf773492791a2f8bd9b4009800c | |
| parent | 22bf2f4db51937fff2d04e9f8f40d57ed19f48e3 (diff) | |
| download | fuzzycat-f96c3d0d025ad37836eb908d561b0c607a1f7b5e.tar.gz fuzzycat-f96c3d0d025ad37836eb908d561b0c607a1f7b5e.zip  | |
adjust formatting
| -rw-r--r-- | fuzzycat/matching.py | 3 | ||||
| -rw-r--r-- | 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 @@ -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",  | 
