diff --git a/README.md b/README.md index bf64bf0..5f00f9a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ words not accepted by the official wordle app, and is probably missing words ava to the offical game. Setup virtual environment: - py -m vent .venv + py -m venv .venv .\.venv\Scripts\activate pip install -r requirements.txt @@ -18,4 +18,4 @@ Run flask web server: Notes: To enable python virtual environments, you first need to do: - Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser \ No newline at end of file + Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser diff --git a/app.py b/app.py index 1d8f3de..b499159 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,6 @@ #!/usr/bin/python -from flask import Flask -from flask import render_template +from flask import Flask, render_template import wordle diff --git a/dictionary.py b/dictionary.py index b557ddc..9b7df32 100644 --- a/dictionary.py +++ b/dictionary.py @@ -2,7 +2,6 @@ WORDLE_LENGTH = 5 - _invalid_words = set( [ "amala", diff --git a/requirements.txt b/requirements.txt index 3b91373..86135ca 100644 Binary files a/requirements.txt and b/requirements.txt differ diff --git a/wordle.code-workspace b/wordle.code-workspace index 876a149..2dd54e7 100644 --- a/wordle.code-workspace +++ b/wordle.code-workspace @@ -4,5 +4,17 @@ "path": "." } ], - "settings": {} + "settings": { + "[python]": { + "editor.defaultFormatter": "ms-python.black-formatter", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": true + }, + }, + "isort.args": [ + "--profile", + "black" + ], + } } \ No newline at end of file diff --git a/wordle.py b/wordle.py index 7d4d0d7..d5b0954 100644 --- a/wordle.py +++ b/wordle.py @@ -2,11 +2,11 @@ import random import string -from enum import Enum from collections import defaultdict +from enum import Enum -import dictionary import constraints +import dictionary class LetterResult(Enum):