chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

        tokenizer: Optional[_Tokenizer] = None,
Severity: Info
Found in abydos/distance/_unknown_g.py by pylint

TODO tokenizer: Optional[_Tokenizer] = None, ^ |

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

        n = self._population_unique_card()
Severity: Info
Found in abydos/distance/_kuhns_i.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 not delta_ab:
Severity: Info
Found in abydos/distance/_kuhns_i.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

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

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

Consider using enumerate instead of iterating with range and len
Open

            for j in range(len(tar)):
Severity: Info
Found in abydos/distance/_saps.py by pylint

Emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate builtin.

Unused variable 'match_cost'
Open

        match_cost, group_cost, mismatch_cost = self._cost
Severity: Minor
Found in abydos/distance/_editex.py by pylint

Used when a variable is defined but not used.

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

        cost: Tuple[float, float, float, float] = (1, 1, 1, 0.33333),

TODO cost: Tuple[float, float, float, float] = (1, 1, 1, 0.33333), ^ |

Unable to import 'numpy'
Open

import numpy as np

Used when pylint has been unable to import a module.

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

        d = self._total_complement_card()

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/_kuhns_vii.py by pylint

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 zeros as np_zeros
Severity: Critical
Found in abydos/distance/_damerau_levenshtein.py by pylint

Used when pylint has been unable to import a module.

Too many local variables (20/15)
Open

    def dist_abs(self, src: str, tar: str) -> float:

Used when a function or method has too many local variables.

Unnecessary else after return
Open

        if ch.isupper():
Severity: Info
Found in abydos/distance/_saps.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.

Consider using enumerate instead of iterating with range and len
Open

        for i in range(len(src)):
Severity: Info
Found in abydos/distance/_saps.py by pylint

Emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate builtin.

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

        weights: Optional[Union[Iterable[float], Dict[str, float]]] = None,

TODO weights: Optional[Union[Iterable[float], Dict[str, float]]] = None, ^ |

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

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

TODO **kwargs: Any ^ |

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

        self,

TODO self, ^ |

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

        b = self._src_only_card() + 1
Severity: Info
Found in abydos/distance/_unknown_i.py by pylint

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

Too many branches (15/12)
Open

    def dist_abs(self, src: str, tar: str) -> float:

Used when a function or method has too many branches, making it hard to follow.

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

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

TODO self, ^ |

Severity
Category
Status
Source
Language