chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Constant name _epsilon doesn't conform to UPPER_CASE naming style
Open

_epsilon = float_info.epsilon
Severity: Info
Found in abydos/distance/_gini_i.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Variable name c doesn't conform to snake_case naming style
Open

        c = self._tar_only_card()
Severity: Info
Found in abydos/distance/_gini_i.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Wrong hanging indentation before block (add 4 spaces).
Open

        weights: Tuple[int, int, int, int, int, int, int, int] = (
Severity: Info
Found in abydos/distance/_covington.py by pylint

TODO weights: Tuple[int, int, int, int, int, int, int, int] = ( ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        normalizer: Callable[[List[float]], float] = max,

TODO normalizer: Callable[[List[float]], float] = max, ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        vowels: str = 'aeiou',

TODO vowels: str = 'aeiou', ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        alphabet: Optional[
Severity: Info
Found in abydos/distance/_kuhns_ii.py by pylint

TODO alphabet: Optional[ ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        self,
Severity: Info
Found in abydos/distance/_warrens_v.py by pylint

TODO self, ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        **kwargs: Any

TODO **kwargs: Any ^ |

Variable name c doesn't conform to snake_case naming style
Open

        c = self._tar_only_card()

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Unable to import 'numpy'
Open

from numpy import int_ as np_int
Severity: Critical
Found in abydos/distance/_rees_levenshtein.py by pylint

Used when pylint has been unable to import a module.

Else clause on loop without a break statement
Open

        else:
Severity: Minor
Found in abydos/distance/_flexmetric.py by pylint

Loops should only have an else clause if they can exit early with a break statement, otherwise the statements under else should be on the same scope as the loop itself.

Too many arguments (7/5)
Open

    def __init__(

Used when a function or method takes too many arguments.

Variable name a doesn't conform to snake_case naming style
Open

            a /= n

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Variable name a doesn't conform to snake_case naming style
Open

        a = max(self._intersection_card(), eps)
Severity: Info
Found in abydos/distance/_stiles.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Unnecessary else after return
Open

                if s in self._consonants or s in self._glides:
Severity: Info
Found in abydos/distance/_covington.py by pylint

Used in order to highlight an unnecessary block of code following an if containing a return statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a return statement.

Wrong hanging indentation before block (add 4 spaces).
Open

                        and j + 1 > 1

TODO and j + 1 > 1 ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                        and src[i] == tar[j - 1]

TODO and src[i] == tar[j - 1] ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        **kwargs: Any
Severity: Info
Found in abydos/distance/_bag.py by pylint

TODO **kwargs: Any ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        alphabet: Optional[
Severity: Info
Found in abydos/distance/_baulieu_xiii.py by pylint

TODO alphabet: Optional[ ^ |

Variable name a doesn't conform to snake_case naming style
Open

        a = self._intersection_card()
Severity: Info
Found in abydos/distance/_baulieu_xiii.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Severity
Category
Status
Source
Language