chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

    def _norm_inverse(x: float, _squares: int, pop: float) -> float:
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

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

Consider using enumerate instead of iterating with range and len
Open

            for i in range(len(_src)):
Severity: Info
Found in abydos/distance/_token_distance.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

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

TODO **kwargs: Any ^ |

Too many arguments (7/5)
Open

    def sim_matrix(

Used when a function or method takes too many arguments.

Unnecessary elif after return
Open

        if mat and (src, tar) in mat:

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

        intersection_type: str = 'crisp',

TODO intersection_type: str = 'crisp', ^ |

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

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

        **kwargs: Any

TODO **kwargs: Any ^ |

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

                                and arr[row, col] < h_val
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

TODO and arr[row, col] < h_val ^ |

Too many branches (20/12)
Open

    def __init__(
Severity: Info
Found in abydos/distance/_token_distance.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

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

TODO intersection_type: str = 'crisp', ^ |

Unused argument 'kwargs'
Open

    def dist_abs(self, src: str, tar: str, *args: Any, **kwargs: Any) -> float:
Severity: Minor
Found in abydos/distance/_chebyshev.py by pylint

Used when a function or method argument is not used.

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

        tar: str,

TODO tar: str, ^ |

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

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

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

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

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

TODO self, ^ |

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

        metric: Optional[_Distance] = None,
Severity: Info
Found in abydos/distance/_single_linkage.py by pylint

TODO metric: Optional[_Distance] = None, ^ |

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

                        np.count_nonzero(starred[row, :]) == 0
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

TODO np.count_nonzero(starred[row, :]) == 0 ^ |

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

        self, tokenizer: Optional[_Tokenizer] = None, **kwargs: Any
Severity: Info
Found in abydos/distance/_roberts.py by pylint

TODO self, tokenizer: Optional[_Tokenizer] = None, **kwargs: Any ^ |

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

        c = self._tar_only_card()
Severity: Info
Found in abydos/distance/_gilbert.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/_benini_i.py by pylint

TODO intersection_type: str = 'crisp', ^ |

Severity
Category
Status
Source
Language