Skip to content
Snippets Groups Projects
Commit f0d032a9 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

fix flake8

parent cd4be79d
No related branches found
No related tags found
No related merge requests found
Pipeline #5912 canceled
......@@ -7,7 +7,7 @@ variables:
POSTGRES_DB: database_name
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
key: '$CI_JOB_NAME-$CI_COMMIT_REF_SLUG'
paths:
- .cache/pip
- venv/
......@@ -24,14 +24,14 @@ stages:
Flake8:
stage: Build
script:
- flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations,venv
- flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations,venv,env
Test:
stage: Build
variables:
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
SECRET_KEY: "secret"
AUTHSCH_KEY: "secret"
AUTHSCH_SECRET: "secret"
DATABASE_URL: 'postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB'
SECRET_KEY: 'secret'
AUTHSCH_KEY: 'secret'
AUTHSCH_SECRET: 'secret'
script:
- python src/manage.py test
......@@ -2,8 +2,6 @@ from django.core.mail import send_mail
import codecs
import sys
sender_email = 'noreply@ujonc.kszk.bme.hu'
link = 'https://ujonc.kszk.bme.hu/homework'
......@@ -13,6 +11,7 @@ def read_email(name):
data = myfile.read()
return data
def send_out_mail(subject, message, sender_email, receiver_email):
if 'runserver' in sys.argv:
# It is in development
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment