Skip to content

Commit

Permalink
Rename string to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerYep committed Feb 11, 2025
1 parent 9d9d5df commit d1a8a6d
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
skip: [mypy, pytest]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
rev: v0.9.6
hooks:
- id: ruff
args: [--fix]
Expand Down
6 changes: 3 additions & 3 deletions cs/algorithms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
from .sort.quick_sort import quick_sort
from .sort.radix_sort import radix_sort
from .sort.selection_sort import selection_sort
from .string.knuth_morris_pratt import kmp_string_match
from .string.lcs import longest_common_subsequence
from .string.sais import build_suffix_array
from .strings.knuth_morris_pratt import kmp_string_match
from .strings.lcs import longest_common_subsequence
from .strings.sais import build_suffix_array

__all__ = (
"bellman_ford_shortest_paths",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cs/structures/suffix_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SuffixArray:
suffix_arr: list[int] = field(repr=False)

def __init__(self, text: str) -> None:
from cs.algorithms.string.sais import build_suffix_array
from cs.algorithms.strings.sais import build_suffix_array

self.text = text + "$"
self.suffix_arr = build_suffix_array(text)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cs.algorithms.string.sais import (
from cs.algorithms.strings.sais import (
build_suffix_array,
build_suffix_array_naive,
get_suffix_annotations,
Expand Down

0 comments on commit d1a8a6d

Please sign in to comment.