Skip to content

Commit

Permalink
consolidating class usage; fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pleary committed Feb 7, 2024
1 parent d0103d5 commit 96cdf3d
Show file tree
Hide file tree
Showing 21 changed files with 328 additions and 848 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[flake8]
ignore = D203
max-line-length = 100
inline-quotes = "
exclude =
.git,
__pycache__,
Expand All @@ -11,4 +12,3 @@ exclude =
test-obs*,
venv
max-complexity = 10

3 changes: 3 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[scripts]
tests = "pytest -s"
coverage = "bash -c 'coverage run -m pytest -s && coverage report --show-missing'"
7 changes: 5 additions & 2 deletions forms.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileRequired


class ImageForm(FlaskForm):
image = FileField('image',
image = FileField(
"image",
validators=[
FileRequired(message="Please include 'image' field.")
])
]
)
Loading

0 comments on commit 96cdf3d

Please sign in to comment.