feat(rolling_hash): add Rabin-Karp rolling hash algorithm #17430
Annotations
10 errors
|
ruff
Process completed with exit code 1.
|
|
ruff (PIE808):
tests/test_rolling_hash.py#L48
tests/test_rolling_hash.py:48:27: PIE808 Unnecessary `start` argument in `range`
help: Remove `start` argument
|
|
ruff (F401):
tests/test_rolling_hash.py#L2
tests/test_rolling_hash.py:2:8: F401 `pytest` imported but unused
help: Remove unused import: `pytest`
|
|
ruff (I001):
tests/test_rolling_hash.py#L2
tests/test_rolling_hash.py:2:1: I001 Import block is un-sorted or un-formatted
help: Organize imports
|
|
ruff (INP001):
tests/test_rolling_hash.py#L1
tests/test_rolling_hash.py:1:1: INP001 File `tests/test_rolling_hash.py` is part of an implicit namespace package. Add an `__init__.py`.
|
|
ruff (E501):
rolling_hash/rabin_karp.py#L62
rolling_hash/rabin_karp.py:62:89: E501 Line too long (94 > 88)
|
|
ruff (SIM102):
rolling_hash/rabin_karp.py#L56
rolling_hash/rabin_karp.py:56:9: SIM102 Use a single `if` statement instead of nested `if` statements
help: Combine `if` statements using `and`
|
|
ruff (UP006):
rolling_hash/rabin_karp.py#L53
rolling_hash/rabin_karp.py:53:14: UP006 Use `list` instead of `List` for type annotation
help: Replace with `list`
|
|
ruff (UP006):
rolling_hash/rabin_karp.py#L15
rolling_hash/rabin_karp.py:15:44: UP006 Use `list` instead of `List` for type annotation
help: Replace with `list`
|
|
ruff (UP035):
rolling_hash/rabin_karp.py#L12
rolling_hash/rabin_karp.py:12:1: UP035 `typing.List` is deprecated, use `list` instead
|