mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Moved "other/anagrams.py" to the string folder (#4289)
* move&rename, changed code accordingly * adjusted codespell ignore-list
This commit is contained in:
parent
ce99859ad5
commit
0ee8f792e3
|
@ -43,12 +43,12 @@ repos:
|
||||||
- id: codespell
|
- id: codespell
|
||||||
args:
|
args:
|
||||||
- --ignore-words-list=ans,crate,fo,followings,hist,iff,mater,secant,som,tim
|
- --ignore-words-list=ans,crate,fo,followings,hist,iff,mater,secant,som,tim
|
||||||
- --skip="./.*,./strings/dictionary.txt,./other/words,./project_euler/problem_022/p022_names.txt"
|
- --skip="./.*,./strings/dictionary.txt,./strings/words.txt,./project_euler/problem_022/p022_names.txt"
|
||||||
- --quiet-level=2
|
- --quiet-level=2
|
||||||
exclude: |
|
exclude: |
|
||||||
(?x)^(
|
(?x)^(
|
||||||
strings/dictionary.txt |
|
strings/dictionary.txt |
|
||||||
other/words |
|
strings/words.txt |
|
||||||
project_euler/problem_022/p022_names.txt
|
project_euler/problem_022/p022_names.txt
|
||||||
)$
|
)$
|
||||||
- repo: local
|
- repo: local
|
||||||
|
|
|
@ -6,7 +6,7 @@ import time
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
print("creating word list...")
|
print("creating word list...")
|
||||||
path = os.path.split(os.path.realpath(__file__))
|
path = os.path.split(os.path.realpath(__file__))
|
||||||
with open(path[0] + "/words") as f:
|
with open(path[0] + "/words.txt") as f:
|
||||||
word_list = sorted(list({word.strip().lower() for word in f}))
|
word_list = sorted(list({word.strip().lower() for word in f}))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user