aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Meinhold <mxmeinhold@gmail.com>2021-08-17 01:35:12 -0400
committerMax Meinhold <mxmeinhold@gmail.com>2021-08-17 02:05:32 -0400
commitfe708ca10178b656bd53cac0e40b92d44fb35867 (patch)
treec3464b9de7a059d533586746fb512f38c0540727
parent7f7ad7082e66da2348b67124c1a399b3345b84bb (diff)
Add `packet/routes` to pylint in ci
Fixes the pylint command introduced in 881dbc88, as well as a lint error introduced in c10fd589.
-rw-r--r--.github/workflows/python-app.yml2
-rw-r--r--packet/routes/api.py4
2 files changed, 3 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/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):