Skip to content

Commit f1030ea

Browse files
algobytewisepeRFectBeliever
authored andcommitted
Moved "other/anagrams.py" to the string folder (TheAlgorithms#4289)
* move&rename, changed code accordingly * adjusted codespell ignore-list
1 parent fe1f700 commit f1030ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: .pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ repos:
4343
- id: codespell
4444
args:
4545
- --ignore-words-list=ans,crate,fo,followings,hist,iff,mater,secant,som,tim
46-
- --skip="./.*,./strings/dictionary.txt,./other/words,./project_euler/problem_022/p022_names.txt"
46+
- --skip="./.*,./strings/dictionary.txt,./strings/words.txt,./project_euler/problem_022/p022_names.txt"
4747
- --quiet-level=2
4848
exclude: |
4949
(?x)^(
5050
strings/dictionary.txt |
51-
other/words |
51+
strings/words.txt |
5252
project_euler/problem_022/p022_names.txt
5353
)$
5454
- repo: local

Diff for: other/anagrams.py renamed to strings/anagrams.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
start_time = time.time()
77
print("creating word list...")
88
path = os.path.split(os.path.realpath(__file__))
9-
with open(path[0] + "/words") as f:
9+
with open(path[0] + "/words.txt") as f:
1010
word_list = sorted(list({word.strip().lower() for word in f}))
1111

1212

Diff for: other/words renamed to strings/words.txt

File renamed without changes.

0 commit comments

Comments
 (0)