chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

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

TODO intersection_type: str = 'crisp', ^ |

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

            cost: float, src: str, tar: str, src_align: str, tar_align: str
Severity: Info
Found in abydos/distance/_covington.py by pylint

TODO cost: float, src: str, tar: str, srcalign: str, taralign: str ^ |

Consider using enumerate instead of iterating with range and len
Open

            for i in range(len(tar_voc)):

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

Unnecessary else after return
Open

        if int(d_mat[src_len, tar_len]) == d_mat[src_len, tar_len]:

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.

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

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

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

TODO **kwargs: Any ^ |

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

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

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

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

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

        tokenizer: Optional[_Tokenizer] = None,
Severity: Info
Found in abydos/distance/_stiles.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/_covington.py by pylint

TODO **kwargs: Any ^ |

Unable to import 'numpy'
Open

import numpy as np

Used when pylint has been unable to import a module.

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

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

TODO self, ^ |

Parameters differ from overridden 'dist_abs' method
Open

    def dist_abs(self, src: str, tar: str, normalized: bool = False) -> float:
Severity: Minor
Found in abydos/distance/_bag.py by pylint

Used when a method has a different number of arguments than in the implemented interface or in an overridden method.

Too many return statements (7/6)
Open

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

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

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

        subst_costs: Optional[
Severity: Info
Found in abydos/distance/_flexmetric.py by pylint

TODO subst_costs: Optional[ ^ |

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

        def _get_second(
Severity: Info
Found in abydos/distance/_flexmetric.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', ^ |

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

        proportional: bool = False,

TODO proportional: bool = False, ^ |

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

        a = self._intersection_card()
Severity: Info
Found in abydos/distance/_fager_mcgowan.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
Severity: Info
Found in abydos/distance/_stiles.py by pylint

TODO **kwargs: Any ^ |

Severity
Category
Status
Source
Language