Compare commits

...

1 Commits

Author SHA1 Message Date
Jonas Schäfer
d5a46b69a6 Include flake8-print plugin
This alerts us of stray print statements, which should never occur
because this is a non-TUI application.
2022-01-15 17:07:16 +01:00
3 changed files with 1 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ jobs:
- name: Install - name: Install
run: | run: |
set -euo pipefail set -euo pipefail
pip install flake8 pip install flake8 flake8-print
- name: Linting - name: Linting
run: | run: |
python -m flake8 snikket_web python -m flake8 snikket_web

View File

@@ -542,8 +542,6 @@ async def edit_circle(id_: str) -> typing.Union[str, quart.Response]:
) )
return redirect(url_for(".edit_circle", id_=id_)) return redirect(url_for(".edit_circle", id_=id_))
else:
print(form.errors)
return await render_template( return await render_template(
"admin_edit_circle.html", "admin_edit_circle.html",

View File

@@ -138,7 +138,6 @@ async def profile() -> typing.Union[str, quart.Response]:
mimetype = file_info.mimetype mimetype = file_info.mimetype
data = file_info.stream.read() data = file_info.stream.read()
if len(data) > max_avatar_size: if len(data) > max_avatar_size:
print(len(data), max_avatar_size)
form.avatar.errors.append(EAVATARTOOBIG) form.avatar.errors.append(EAVATARTOOBIG)
ok = False ok = False
elif len(data) > 0: elif len(data) > 0: