From c818e01aedcfa1358585f6752e9f0e9654ce3306 Mon Sep 17 00:00:00 2001 From: jasquat Date: Tue, 20 Jun 2023 14:23:58 -0400 Subject: [PATCH] pyl and do not error if ruff fix fails w/ burnettk --- bin/run_pyl | 5 +---- .../routes/process_instances_controller.py | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/run_pyl b/bin/run_pyl index 4815d9fd1..5f07b1412 100755 --- a/bin/run_pyl +++ b/bin/run_pyl @@ -39,10 +39,7 @@ function run_autofixers() { fi python_dirs=$(get_python_dirs) - # python_files=$(find $python_dirs -type f -name "*.py" ! -name '.null-ls*' ! -name '_null-ls*') - # Don't check things in git-ignore: - python_files=$(git ls-files $python_dirs | grep .py$) - ruff --fix $python_files + ruff --fix $python_dirs || echo '' } function run_pre_commmit() { diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py index e7b8fcff3..a17b1d347 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py @@ -438,7 +438,10 @@ def process_instance_task_list( if bpmn_process is None: raise ApiError( error_code="bpmn_process_not_found", - message=f"Cannot find a bpmn process with guid '{bpmn_process_guid}' for process instance '{process_instance.id}'", + message=( + f"Cannot find a bpmn process with guid '{bpmn_process_guid}' for process instance" + f" '{process_instance.id}'" + ), status_code=400, )