From 01c8d7929c7b141578b8eadff3b97c8430a105ea Mon Sep 17 00:00:00 2001 From: Tom Evans Date: Tue, 9 Mar 2021 16:20:06 +0000 Subject: [PATCH] Run lint in Github Actions Run lint in Github Actions to avoid PRs being merged that have accidentally included linting violations. Fix a file that has a linting violation. --- oauth2_provider/middleware.py | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/oauth2_provider/middleware.py b/oauth2_provider/middleware.py index 45dc2aca1..17ba6c35f 100644 --- a/oauth2_provider/middleware.py +++ b/oauth2_provider/middleware.py @@ -21,6 +21,7 @@ class OAuth2TokenMiddleware: It also adds "Authorization" to the "Vary" header, so that django's cache middleware or a reverse proxy can create proper cache keys. """ + def __init__(self, get_response): self.get_response = get_response diff --git a/tox.ini b/tox.ini index 857049cf5..f9ca24806 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ python = 3.5: py35 3.6: py36 3.7: py37 - 3.8: py38, docs + 3.8: py38, docs, flake8 3.9: py39 [pytest]