Showing 4,191 of 4,191 total issues
Line too long (108/100) Open
# A, E, I, O, P, U should create variants, but a, e, i, o, u should not create any new variant # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Line too long (129/100) Open
# pattern is a sequence of characters that might appear after a word has been transliterated into phonetic alphabet # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Consider using enumerate instead of iterating with range and len Open
for i in range(len(word)):
- 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.
Consider using enumerate instead of iterating with range and len Open
for i in range(len(alpha)):
- 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.
Line too long (105/100) Open
] # type: Union[int, str, Tuple[Union[int, str], Union[int, str]]] # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Wrong hanging indentation before block (add 4 spaces). Open
and ename[i + 1 : i + 2] not in self._uc_v_set
- Read upRead up
- Exclude checks
TODO and ename[i + 1 : i + 2] not in self.ucv_set ^ |
Wrong hanging indentation before block (add 4 spaces). Open
i > 0
- Read upRead up
- Exclude checks
TODO i > 0 ^ |
Unnecessary elif
after continue
Open
if ename[i + 1 : i + 2] == 'H' and not (
- Read upRead up
- Exclude checks
Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.
Too few public methods (1/2) Open
class OmissionKey(_Fingerprint):
- Read upRead up
- Exclude checks
Used when class has too few public methods, so be sure it's really worth it.
Unnecessary use of a comprehension Open
for x, y in zip(
- Read upRead up
- Exclude checks
Instead of using an identitiy comprehension, consider using the list, dict or set constructor. It is faster and simpler.
Wrong hanging indentation before block (add 4 spaces). Open
len(word) > 1
- Read upRead up
- Exclude checks
TODO len(word) > 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
('dg', '2g'),
- Read upRead up
- Exclude checks
TODO ('dg', '2g'), ^ |
Too many branches (29/12) Open
def encode(self, word: str) -> str:
- Read upRead up
- Exclude checks
Used when a function or method has too many branches, making it hard to follow.
Line too long (108/100) Open
# A, E, I, O, P, U should create variants, but a, e, i, o, u should not create any new variant # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Too many branches (14/12) Open
def encode(self, word: str) -> str:
- 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
and i > 0
- Read upRead up
- Exclude checks
TODO and i > 0 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
i - 1 > 0
- Read upRead up
- Exclude checks
TODO i - 1 > 0 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and i + 2 <= elen
- Read upRead up
- Exclude checks
TODO and i + 2 <= elen ^ |
Too many branches (32/12) Open
def encode(self, word: str) -> str:
- 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
('ci', 'si'),
- Read upRead up
- Exclude checks
TODO ('ci', 'si'), ^ |