Skip to content

Commit

Permalink
Moved "other/anagrams.py" to the string folder (TheAlgorithms#4289)
Browse files Browse the repository at this point in the history
* move&rename, changed code accordingly

* adjusted codespell ignore-list
  • Loading branch information
algobytewise authored Mar 22, 2021
1 parent ce99859 commit 0ee8f79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ repos:
- id: codespell
args:
- --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
exclude: |
(?x)^(
strings/dictionary.txt |
other/words |
strings/words.txt |
project_euler/problem_022/p022_names.txt
)$
- repo: local
Expand Down
2 changes: 1 addition & 1 deletion other/anagrams.py → strings/anagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
start_time = time.time()
print("creating word list...")
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}))


Expand Down
File renamed without changes.

0 comments on commit 0ee8f79

Please sign in to comment.