From 2392c9e2de4e0bd6fa2b05bc26f367e6dbf6ad72 Mon Sep 17 00:00:00 2001 From: burnettk Date: Fri, 3 Jun 2022 17:29:30 -0400 Subject: [PATCH] gitignore pyrightconfig.json, and run fix_python_docstrings --- .gitignore | 1 + src/spiffworkflow_backend/__init__.py | 1 - .../routes/admin_blueprint/admin_blueprint.py | 1 + src/spiffworkflow_backend/scripts/script.py | 2 -- 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 03cd669d..5d723559 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ __pycache__/ *.sqlite3 node_modules +/pyrightconfig.json diff --git a/src/spiffworkflow_backend/__init__.py b/src/spiffworkflow_backend/__init__.py index ba8ebd28..bf7a54dd 100644 --- a/src/spiffworkflow_backend/__init__.py +++ b/src/spiffworkflow_backend/__init__.py @@ -13,7 +13,6 @@ from spiffworkflow_backend.routes.admin_blueprint.admin_blueprint import admin_b from spiffworkflow_backend.routes.api_blueprint import api_blueprint from spiffworkflow_backend.routes.process_api_blueprint import process_api_blueprint from spiffworkflow_backend.routes.user_blueprint import user_blueprint -from spiffworkflow_backend.models.user import UserModel def create_app() -> flask.app.Flask: diff --git a/src/spiffworkflow_backend/routes/admin_blueprint/admin_blueprint.py b/src/spiffworkflow_backend/routes/admin_blueprint/admin_blueprint.py index d8290928..2689410e 100644 --- a/src/spiffworkflow_backend/routes/admin_blueprint/admin_blueprint.py +++ b/src/spiffworkflow_backend/routes/admin_blueprint/admin_blueprint.py @@ -29,6 +29,7 @@ ALLOWED_BPMN_EXTENSIONS = {"bpmn", "dmn"} @admin_blueprint.route("/token", methods=["GET"]) def token(): + """Token.""" if current_app.env != "development": return "Not authorized" diff --git a/src/spiffworkflow_backend/scripts/script.py b/src/spiffworkflow_backend/scripts/script.py index 113516bc..a47395db 100644 --- a/src/spiffworkflow_backend/scripts/script.py +++ b/src/spiffworkflow_backend/scripts/script.py @@ -49,7 +49,6 @@ class Script: We may be able to remove the task for each of these calls if we are not using it other than potentially updating the task data. """ - def make_closure(subclass, task, workflow_id): """Yes - this is black magic. @@ -85,7 +84,6 @@ class Script: We may be able to remove the task for each of these calls if we are not using it other than potentially updating the task data. """ - def make_closure_validate(subclass, task, workflow_id): """Make_closure_validate.""" instance = subclass()