Compare commits

..

4 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
Jonas Schäfer
aed9ad1cde Merge pull request #93 from Zash/debianbullseye
Dockerfile: Switch base image to Debian 11
2022-01-10 16:40:28 +01:00
Kim Alvefur
b545c137b1 Dockerfile: Switch base image to Debian 11 2022-01-10 16:27:38 +01:00
Matthew Wild
47642dc384 Merge pull request #108 from snikket-im/feature/multi-stage-dockerfile
Dockerfile: Split build into multiple stages
2022-01-10 14:21:57 +00:00
4 changed files with 3 additions and 6 deletions

View File

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

View File

@@ -1,4 +1,4 @@
FROM debian:buster-slim AS build
FROM debian:bullseye-slim AS build
RUN set -eu; \
export DEBIAN_FRONTEND=noninteractive ; \
@@ -22,7 +22,7 @@ RUN pip3 install -r requirements.txt; \
make;
FROM debian:buster-slim
FROM debian:bullseye-slim
ARG BUILD_SERIES=dev
ARG BUILD_ID=0

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_))
else:
print(form.errors)
return await render_template(
"admin_edit_circle.html",

View File

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