aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Meinhold <mxmeinhold@gmail.com>2021-08-17 13:42:33 -0400
committerGitHub <noreply@github.com>2021-08-17 13:42:33 -0400
commit7082ce13616b99b6ed7f90e736b65280e63b5458 (patch)
treec3464b9de7a059d533586746fb512f38c0540727
parentf32fac37ca5ad063da56379fe66627cc100728b4 (diff)
parentfe708ca10178b656bd53cac0e40b92d44fb35867 (diff)
Merge pull request #285 from mxmeinhold/pylint-fixes
-rw-r--r--.github/workflows/python-app.yml2
-rw-r--r--packet/__init__.py1
-rw-r--r--packet/routes/api.py4
3 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml
index 3934f40..29dc65f 100644
--- a/.github/workflows/python-app.yml
+++ b/.github/workflows/python-app.yml
@@ -31,7 +31,7 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with pylint
run: |
- pylint packet
+ pylint packet/routes packet
typecheck:
runs-on: ubuntu-latest
diff --git a/packet/__init__.py b/packet/__init__.py
index f011573..82e2119 100644
--- a/packet/__init__.py
+++ b/packet/__init__.py
@@ -78,6 +78,7 @@ auth = OIDCAuthentication({'app': APP_CONFIG}, app)
app.logger.info('OIDCAuth configured')
# Sentry
+# pylint: disable=abstract-class-instantiated
sentry_sdk.init(
dsn=app.config['SENTRY_DSN'],
integrations=[FlaskIntegration(), SqlalchemyIntegration()]
diff --git a/packet/routes/api.py b/packet/routes/api.py
index 38046e4..21d9f0d 100644
--- a/packet/routes/api.py
+++ b/packet/routes/api.py
@@ -210,8 +210,8 @@ def upperclassman_stats(uid):
@app.route('/readiness')
def readiness() -> tuple[str, int]:
- '''A basic healthcheck. Returns 200 to indicate flask is running'''
- return "ready", 200
+ """A basic healthcheck. Returns 200 to indicate flask is running"""
+ return 'ready', 200
def commit_sig(packet, was_100, uid):