chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

        discount: float = 0.2,

TODO discount: float = 0.2, ^ |

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

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

TODO **kwargs: Any ^ |

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

                        and (src_cur < src_len)
Severity: Info
Found in abydos/distance/_sift4_simplest.py by pylint

TODO and (srccur < srclen) ^ |

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

    def _norm_complement(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...).

Too many statements (52/50)
Open

    def _soft_intersection(self) -> TCounter[str]:
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used when a function or method has too many statements. You should then split it in smaller functions / methods.

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

        self,

TODO self, ^ |

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

        maxdist: int = 2,

TODO maxdist: int = 2, ^ |

Consider using enumerate instead of iterating with range and len
Open

        for pos in range(len(src)):

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

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

TODO intersection_type: str = 'crisp', ^ |

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

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

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

Unable to import 'numpy'
Open

import numpy as np
Severity: Critical
Found in abydos/distance/_token_distance.py by pylint

Used when pylint has been unable to import a module.

Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
Open

            if not len(self._soft_intersection_precalc):
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used when Pylint detects that len(sequence) is being used without explicit comparison inside a condition to determine if a sequence is empty. Instead of coercing the length to a boolean, either rely on the fact that empty sequences are false or compare the length against a scalar.

Too many statements (80/50)
Open

    def _group_linkage_intersection(self) -> TCounter[str]:
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used when a function or method has too many statements. You should then split it in smaller functions / methods.

Attribute '_src_orig' defined outside __init__
Open

        self._src_orig = src
Severity: Minor
Found in abydos/distance/_token_distance.py by pylint

Used when an instance attribute is defined outside the init method.

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

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

TODO intersection_type: str = 'crisp', ^ |

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

        alphabet: Optional[str] = None,

TODO alphabet: Optional[str] = None, ^ |

Unable to import 'numpy'
Open

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

Used when pylint has been unable to import a module.

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

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

TODO intersection_type: str = 'crisp', ^ |

Severity
Category
Status
Source
Language