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:
- Read upRead up
- Exclude checks
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)):
- 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
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Too many arguments (7/5) Open
def sim_matrix(
- Read upRead up
- Exclude checks
Used when a function or method takes too many arguments.
Unnecessary elif
after return
Open
if mat and (src, tar) in mat:
- Read upRead up
- Exclude checks
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',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
Variable name c
doesn't conform to snake_case naming style Open
c = self._tar_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
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and arr[row, col] < h_val
- Read upRead up
- Exclude checks
TODO and arr[row, col] < h_val ^ |
Too many branches (20/12) Open
def __init__(
- Read upRead up
- Exclude checks
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',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
Unused argument 'kwargs' Open
def dist_abs(self, src: str, tar: str, *args: Any, **kwargs: Any) -> float:
- Read upRead up
- Exclude checks
Used when a function or method argument is not used.
Wrong hanging indentation before block (add 4 spaces). Open
tar: str,
- Read upRead up
- Exclude checks
TODO tar: str, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |
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
metric: Optional[_Distance] = None,
- Read upRead up
- Exclude checks
TODO metric: Optional[_Distance] = None, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
np.count_nonzero(starred[row, :]) == 0
- Read upRead up
- Exclude checks
TODO np.count_nonzero(starred[row, :]) == 0 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self, tokenizer: Optional[_Tokenizer] = None, **kwargs: Any
- Read upRead up
- Exclude checks
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()
- 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', ^ |