Showing 4,191 of 4,191 total issues
Consider using enumerate instead of iterating with range and len Open
for i in range(len(ying)):
- 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 ^ |
Method could be a function Open
def _token_at(
- Read upRead up
- Exclude checks
Used when a method doesn't use its bound instance, and so could be written as a function.
Variable name t
doesn't conform to snake_case naming style Open
t = self._token_at(tar, pos - 1)
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name s
doesn't conform to snake_case naming style Open
s = self._token_at(src, pos + 1)
- 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
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
alphabet: Optional[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |
Wrong hanging indentation before block (add 4 spaces). Open
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **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...).
Parameters differ from overridden 'sim' method Open
def sim(self, src: str, tar: str, *args: str) -> float:
- Read upRead up
- Exclude checks
Used when a method has a different number of arguments than in the implemented interface or in an overridden method.
Parameters differ from overridden 'dist' method Open
def dist(self, *args: Any, **kwargs: Any) -> NoReturn:
- Read upRead up
- Exclude checks
Used when a method has a different number of arguments than in the implemented interface or in an overridden method.
Variable name pe
doesn't conform to snake_case naming style Open
pe = 2 * q * (1 - q)
- 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
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
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
self._long_strings
- Read upRead up
- Exclude checks
TODO self.longstrings ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (num_com > i + 1)
- Read upRead up
- Exclude checks
TODO and (num_com > i + 1) ^ |
Too many local variables (23/15) Open
def sim(self, src: str, tar: str) -> float:
- Read upRead up
- Exclude checks
Used when a function or method has too many local variables.
Variable name a
doesn't conform to snake_case naming style Open
a = self._intersection_card()
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
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...).