Skip to content

Commit 4355f64

Browse files
committed
did some linting fixes
1 parent fba2cc6 commit 4355f64

5 files changed

Lines changed: 6 additions & 9 deletions

File tree

.pylintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[MASTER]
22
ignore = ,input
33
persistent = yes
4-
load-plugins = pylint_quotes
54

65
[MESSAGES CONTROL]
76
disable =
@@ -10,7 +9,6 @@ disable =
109
duplicate-code,
1110
no-member,
1211
parse-error,
13-
bad-continuation,
1412
too-few-public-methods,
1513
global-statement,
1614
cyclic-import,

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ pycparser==2.23
3232
pycryptodomex==3.23.0
3333
pyjwkest==1.4.2
3434
pylint==3.3.8
35-
pylint-quotes==0.2.3
3635
PyMySQL==1.1.2
3736
pyOpenSSL==25.2.0
3837
python-dateutil==2.9.0.post0

selections/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
try:
5151
s3.create_bucket(Bucket=app.config['S3_BUCKET_NAME'])
5252
except s3.exceptions.BucketAlreadyExists:
53-
1+1
53+
pass
5454

5555
# Load Applications Blueprint
5656
from selections.blueprints.application import *

selections/blueprints/application.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from collections import defaultdict
2-
from zipfile import BadZipFile
32

43
from flask import render_template, redirect, url_for, flash, request
54

@@ -97,7 +96,7 @@ def import_application():
9796
if line[-1:] == ' ':
9897
app_text += line
9998
else:
100-
app_text += '\n{}'.format(line)
99+
app_text += f'\n{line}'
101100

102101
applications[app_rit_id] = [app_gender, app_text]
103102
new_app = Applicant(
@@ -188,7 +187,7 @@ def submit_application(app_id, info=None):
188187
db.session.add(member_score)
189188
db.session.flush()
190189
db.session.commit()
191-
flash('Thanks for evaluating application #{}!'.format(app_id))
190+
flash(f'Thanks for evaluating application #{app_id}!')
192191
return redirect('/', 302)
193192

194193

@@ -213,7 +212,8 @@ def review_application(app_id, info=None):
213212
@before_request
214213
def get_phone_application(app_id, info=None):
215214
applicant_info = Applicant.query.filter_by(id=app_id).first()
216-
pdf_url = s3.generate_presigned_url('get_object', Params={'Bucket': app.config['S3_BUCKET_NAME'], 'Key': applicant_info.rit_id+'.pdf'}, ExpiresIn=30)
215+
pdf_url = s3.generate_presigned_url('get_object', Params={'Bucket': app.config['S3_BUCKET_NAME'],
216+
'Key': applicant_info.rit_id+'.pdf'}, ExpiresIn=30)
217217
pdf_url = pdf_url.replace("s3.csh", "assets.csh")
218218
scores = [subs.score for subs in Submission.query.filter_by(application=app_id).all()]
219219
total = 0

selections/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ def assign_pending_applicants():
4949
app_data.team = int(team)
5050
app_group += 1
5151
db.session.flush()
52-
db.session.commit()
52+
db.session.commit()

0 commit comments

Comments
 (0)