Skip to content

Moved "other/anagrams.py" to the string folder #4289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is worong string try import fish.&&^

- --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.