From 53ee1c77fdda44184d03e6cb1f5a725b4c36b6f1 Mon Sep 17 00:00:00 2001 From: Andreas <andreasv@fsmpi.rwth-aachen.de> Date: Fri, 2 Aug 2019 21:29:23 +0200 Subject: [PATCH] fix some linter errors --- .gitlab-ci.yml | 2 +- chapters.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c0a089..56de331 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ linter: - python3 -V - uname -a - apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage pylint3 - - pylint3 --indent-string='\t' --indent-after-paren=1 --max-line-length=160 --output-format=text *.py | tee pylint.txt + - pylint3 --indent-string='\t' --indent-after-paren=1 --max-line-length=160 --docstring-min-length=9999 --output-format=text *.py | tee pylint.txt artifacts: paths: - pylint.txt diff --git a/chapters.py b/chapters.py index 211e78b..acd60ea 100644 --- a/chapters.py +++ b/chapters.py @@ -31,8 +31,8 @@ def suggest_chapter(lectureid): if 'ref' in request.values: flash('Falsches Zeitformat, "%H:%M:%S" wird erwartet. Z.B. "01:39:42" für eine Kapitel bei Stunde 1, Minute 39, Sekunde 42') return redirect(request.values['ref']) - return 'Wrong time format, "%H:%M:%S" is expected', 400 - + return 'Wrong time format, "%H:%M:%S" is expected', 400 + submitter = None if not ismod(): submitter = request.environ['REMOTE_ADDR'] -- GitLab