From 6595d53212eaa4b9319da7196f5e2286d30eb462 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 6 Jun 2021 10:11:00 +0000 Subject: Format code with black This commit fixes the style issues introduced in 57207ef according to the output from black. Details: https://deepsource.io/gh/navanchauhan/SaaS-in-a-Flask/transform/fb582430-1f1f-45bb-8c05-5f5bec16f981/ --- app/forms/app_forms.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'app/forms/app_forms.py') diff --git a/app/forms/app_forms.py b/app/forms/app_forms.py index 005b53a..a7742cd 100644 --- a/app/forms/app_forms.py +++ b/app/forms/app_forms.py @@ -3,18 +3,21 @@ from wtforms import StringField, TextAreaField, PasswordField from wtforms.fields.html5 import EmailField from wtforms.validators import DataRequired, Email + class MyForm(FlaskForm): - name = StringField('Name', validators=[DataRequired()]) - email = EmailField('Email', validators=[DataRequired(), Email()]) - subject = StringField('Subject', validators=[DataRequired()]) - body = TextAreaField('Message', validators=[DataRequired()]) + name = StringField("Name", validators=[DataRequired()]) + email = EmailField("Email", validators=[DataRequired(), Email()]) + subject = StringField("Subject", validators=[DataRequired()]) + body = TextAreaField("Message", validators=[DataRequired()]) + class UserSignUp(FlaskForm): - first_name = StringField('First Name', validators=[DataRequired()]) - last_name = StringField('Last Name') - email = EmailField('Email',validators=[DataRequired(),Email()]) - password = PasswordField('Password',validators=[DataRequired()]) + first_name = StringField("First Name", validators=[DataRequired()]) + last_name = StringField("Last Name") + email = EmailField("Email", validators=[DataRequired(), Email()]) + password = PasswordField("Password", validators=[DataRequired()]) + class UserLogIn(FlaskForm): - email = EmailField('Email',validators=[DataRequired()]) - password = PasswordField('Password',validators=[DataRequired()]) \ No newline at end of file + email = EmailField("Email", validators=[DataRequired()]) + password = PasswordField("Password", validators=[DataRequired()]) -- cgit v1.2.3