chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

            for kb in ['QWERTY', 'QWERTZ', 'AZERTY']:
Severity: Info
Found in abydos/distance/_typo.py by pylint

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

Using possibly undefined loop variable 'row'
Open

            return kb_array.index(row), row.index(char)
Severity: Minor
Found in abydos/distance/_typo.py by pylint

Used when a loop variable (i.e. defined by a for loop or a list comprehension or a generator expression) is used outside the loop.

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

        def _henderson_heron(
Severity: Info
Found in abydos/distance/_raup_crick.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/_kendall_tau.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

        tokenizer: Optional[_Tokenizer] = None,

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

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

        block_limit: int = 2,

TODO block_limit: int = 2, ^ |

Line too long (103/100)
Open

            ]  # type: List[Tuple[Union[Sequence[str], Set[str], FrozenSet[str]], float]]  # noqa: E501
Severity: Info
Found in abydos/distance/_flexmetric.py by pylint

Used when a line is longer than a given number of characters.

Too many return statements (8/6)
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 return statement, making it hard to follow.

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

        b = self._src_only_card()

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

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

            b /= 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 = self._intersection_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

                top_n < len(terminals) and terminals[top_n].score == top_score
Severity: Info
Found in abydos/distance/_covington.py by pylint

TODO topn < len(terminals) and terminals[topn].score == top_score ^ |

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

        **kwargs: Any

TODO **kwargs: Any ^ |

Consider using enumerate instead of iterating with range and len
Open

            for i in range(len(src_voc)):

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

        alphabet: Optional[

TODO alphabet: Optional[ ^ |

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

        intersection_type: str = 'crisp',

TODO intersection_type: str = 'crisp', ^ |

Unable to import 'numpy'
Open

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

Used when pylint has been unable to import a module.

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...).

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...).

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

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

TODO self, ^ |

Severity
Category
Status
Source
Language