Skip to content

Commit 7082ce1

Browse files
authored
Merge pull request #285 from mxmeinhold/pylint-fixes
2 parents f32fac3 + fe708ca commit 7082ce1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3232
- name: Lint with pylint
3333
run: |
34-
pylint packet
34+
pylint packet/routes packet
3535
3636
typecheck:
3737
runs-on: ubuntu-latest

packet/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
app.logger.info('OIDCAuth configured')
7979

8080
# Sentry
81+
# pylint: disable=abstract-class-instantiated
8182
sentry_sdk.init(
8283
dsn=app.config['SENTRY_DSN'],
8384
integrations=[FlaskIntegration(), SqlalchemyIntegration()]

packet/routes/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ def upperclassman_stats(uid):
210210

211211
@app.route('/readiness')
212212
def readiness() -> tuple[str, int]:
213-
'''A basic healthcheck. Returns 200 to indicate flask is running'''
214-
return "ready", 200
213+
"""A basic healthcheck. Returns 200 to indicate flask is running"""
214+
return 'ready', 200
215215

216216

217217
def commit_sig(packet, was_100, uid):

0 commit comments

Comments
 (0)