Setup isort extention for import formatting.
This commit is contained in:
1 parent
f5d8347134
commit
0eaacb88ee
6 files changed
+18
-8
No files matched your search
@@ -9,7 +9,7 @@ words not accepted by the official wordle app, and is probably missing words ava
|
|||||||
to the offical game.
|
to the offical game.
|
||||||
|
|
||||||
Setup virtual environment:
|
Setup virtual environment:
|
||||||
py -m vent .venv
|
py -m venv .venv
|
||||||
.\.venv\Scripts\activate
|
.\.venv\Scripts\activate
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
@@ -18,4 +18,4 @@ Run flask web server:
|
|||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
To enable python virtual environments, you first need to do:
|
To enable python virtual environments, you first need to do:
|
||||||
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
|
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
from flask import Flask
|
from flask import Flask, render_template
|
||||||
from flask import render_template
|
|
||||||
|
|
||||||
import wordle
|
import wordle
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
WORDLE_LENGTH = 5
|
WORDLE_LENGTH = 5
|
||||||
|
|
||||||
|
|
||||||
_invalid_words = set(
|
_invalid_words = set(
|
||||||
[
|
[
|
||||||
"amala",
|
"amala",
|
||||||
|
|||||||
Binary file not shown.
+13
-1
@@ -4,5 +4,17 @@
|
|||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"settings": {}
|
"settings": {
|
||||||
|
"[python]": {
|
||||||
|
"editor.defaultFormatter": "ms-python.black-formatter",
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.organizeImports": true
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"isort.args": [
|
||||||
|
"--profile",
|
||||||
|
"black"
|
||||||
|
],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
from enum import Enum
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
from enum import Enum
|
||||||
|
|
||||||
import dictionary
|
|
||||||
import constraints
|
import constraints
|
||||||
|
import dictionary
|
||||||
|
|
||||||
|
|
||||||
class LetterResult(Enum):
|
class LetterResult(Enum):
|
||||||
|
|||||||
Reference in new issue
Block a user