Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
discount: float = 0.2,
- Read upRead up
- Exclude checks
TODO discount: float = 0.2, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (src_cur < src_len)
- Read upRead up
- Exclude checks
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:
- Read upRead up
- Exclude checks
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]:
- Read upRead up
- Exclude checks
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,
- Read upRead up
- Exclude checks
TODO self, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
maxdist: int = 2,
- Read upRead up
- Exclude checks
TODO maxdist: int = 2, ^ |
Consider using enumerate instead of iterating with range and len Open
for pos in range(len(src)):
- Read upRead up
- Exclude checks
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',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and np.count_nonzero(starred[:, col]) == 0
- Read upRead up
- Exclude checks
TODO and np.count_nonzero(starred[:, col]) == 0 ^ |
Unable to import 'numpy' Open
import numpy as np
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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]:
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
Used when an instance attribute is defined outside the init method.
Wrong hanging indentation before block (add 4 spaces). Open
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
alphabet: Optional[str] = None,
- Read upRead up
- Exclude checks
TODO alphabet: Optional[str] = None, ^ |
Unable to import 'numpy' Open
from numpy import zeros as np_zeros
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Variable name b
doesn't conform to snake_case naming style Open
b = self._src_only_card()
- Read upRead up
- Exclude checks
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',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |