From d5768cf101ca835b05c8c7c16eeb9a577774e6d6 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Wed, 19 Apr 2023 17:36:31 +0000 Subject: [PATCH] Ignore non-issues --- .deepsource.toml | 3 --- onlylegs/__init__.py | 4 ++-- setup/runner.py | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 08a3ea5..3e0e0ac 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -1,8 +1,5 @@ version = 1 -[[analyzers]] -name = "sql" - [[analyzers]] name = "python" diff --git a/onlylegs/__init__.py b/onlylegs/__init__.py index 741a7e7..4979132 100644 --- a/onlylegs/__init__.py +++ b/onlylegs/__init__.py @@ -85,14 +85,14 @@ def create_app(): # pylint: disable=R0914 return User.query.filter_by(alt_id=user_id).first() @login_manager.unauthorized_handler - def unauthorized(): + def unauthorized(): # skipcq: PTC-W0065 error = 401 msg = "You are not authorized to view this page!!!!" return render_template("error.html", error=error, msg=msg), error # ERROR HANDLERS @app.errorhandler(Exception) - def error_page(err): # noqa + def error_page(err): # skipcq: PTC-W0065 """ Error handlers, if the error is not a HTTP error, return 500 """ diff --git a/setup/runner.py b/setup/runner.py index 138c40c..11c1e10 100644 --- a/setup/runner.py +++ b/setup/runner.py @@ -10,7 +10,7 @@ class OnlyLegs(Application): Gunicorn application """ - def __init__(self, options={}): # pylint: disable=W0102, W0231 + def __init__(self, options={}): # pylint: disable=W0102 skipcq: PYL-W0231 self.usage = None self.callable = None self.options = options @@ -27,7 +27,7 @@ class OnlyLegs(Application): return cfg @staticmethod - def prog(): # pylint: disable=C0116, E0202 + def prog(): # pylint: disable=C0116 skipcq: PYL-E0202 return "OnlyLegs" def load(self):