chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

        c = max(self._tar_only_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 t[-2:] == '--':
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

        **kwargs: Any

TODO **kwargs: Any ^ |

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

        normalizer: Callable[[List[float]], float] = max,
Severity: Info
Found in abydos/distance/_flexmetric.py by pylint

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

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

            c /= n

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

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

            td = unicode_normalize('NFKD', t)
Severity: Info
Found in abydos/distance/_covington.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

        intersection_type: str = 'crisp',
Severity: Info
Found in abydos/distance/_baulieu_xiii.py by pylint

TODO intersection_type: str = 'crisp', ^ |

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

        a = self._intersection_card()

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

            s: Tuple[Union[Sequence[str], Set[str], FrozenSet[str]], float]
Severity: Info
Found in abydos/distance/_flexmetric.py by pylint

TODO s: Tuple[Union[Sequence[str], Set[str], FrozenSet[str]], float] ^ |

Too many branches (13/12)
Open

    def _cost(self, src: str, s_pos: int, tar: str, t_pos: int) -> float:
Severity: Info
Found in abydos/distance/_flexmetric.py by pylint

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,

TODO self, ^ |

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

        mean_func: str = 'arithmetic',

TODO mean_func: str = 'arithmetic', ^ |

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

        b = max(self._src_only_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...).

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

        mode: str = 'lev',

TODO mode: str = 'lev', ^ |

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

        c = self._tar_only_card()
Severity: Info
Found in abydos/distance/_kuhns_ii.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

        intersection_type: str = 'crisp',

TODO intersection_type: str = 'crisp', ^ |

Too many branches (16/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.

Unable to import 'numpy'
Open

from numpy import zeros as np_zeros
Severity: Critical
Found in abydos/distance/_flexmetric.py by pylint

Used when pylint has been unable to import a module.

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

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

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

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

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

TODO **kwargs: Any ^ |

Severity
Category
Status
Source
Language