From 434b78bdea91e88b501c08211df98dd824781c0d Mon Sep 17 00:00:00 2001 From: Carmen Date: Fri, 6 Dec 2024 16:46:36 +0100 Subject: [PATCH 1/2] ignore local linting config for pre-commit + ruff dummy error --- .gitignore | 4 ++++ .../processing/actinia_processing/ephemeral_processing.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1fa03c495..fe356a40f 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,7 @@ docker/redis_queue_data/dump.rdb !docker/actinia-core-dev/actinia.cfg !docker/actinia-core-dev/endpoints.csv !docker/actinia-core-tests/*.cfg + +# linting with shared config file +ruff-github-workflows.toml +ruff-merged.toml diff --git a/src/actinia_core/processing/actinia_processing/ephemeral_processing.py b/src/actinia_core/processing/actinia_processing/ephemeral_processing.py index 6344e5429..5d285e612 100644 --- a/src/actinia_core/processing/actinia_processing/ephemeral_processing.py +++ b/src/actinia_core/processing/actinia_processing/ephemeral_processing.py @@ -1367,7 +1367,7 @@ def _check_reset_region(self): if self.skip_region_check is True: return - errorid, stdout_buff, _ = self.ginit.run_module("g.region", ["-ug"]) + errorid, stdout_buff, dummy = self.ginit.run_module("g.region", ["-ug"]) if errorid != 0: raise AsyncProcessError( From a980b10a238bc57dca4dc4a1e16c333b6804a745 Mon Sep 17 00:00:00 2001 From: Carmen Date: Fri, 13 Dec 2024 10:48:17 +0100 Subject: [PATCH 2/2] lint --- .../processing/actinia_processing/ephemeral_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actinia_core/processing/actinia_processing/ephemeral_processing.py b/src/actinia_core/processing/actinia_processing/ephemeral_processing.py index 5d285e612..6344e5429 100644 --- a/src/actinia_core/processing/actinia_processing/ephemeral_processing.py +++ b/src/actinia_core/processing/actinia_processing/ephemeral_processing.py @@ -1367,7 +1367,7 @@ def _check_reset_region(self): if self.skip_region_check is True: return - errorid, stdout_buff, dummy = self.ginit.run_module("g.region", ["-ug"]) + errorid, stdout_buff, _ = self.ginit.run_module("g.region", ["-ug"]) if errorid != 0: raise AsyncProcessError(