From b0802bc28142488d0524b817605cbe3e9be729ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlson=20B=C3=BCth?= Date: Wed, 4 Dec 2024 10:20:52 +0100 Subject: [PATCH] lint: reconfig --- .github/workflows/lint.yml | 4 ++-- tests/conftest.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c1b815e..a723245 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -53,9 +53,9 @@ jobs: run: pip install pylint - name: Lint Source Code - run: pylint -d E0401 superblockify/ + run: pylint -d E0401,R0917 superblockify/ # ignore import-errors first, analyze later with tests in anaconda environment - name: Lint Tests - run: pylint -d E0401 -d R0801 tests/ + run: pylint -d E0401,R0801,R0917 tests/ # also ignore code repetition in tests diff --git a/tests/conftest.py b/tests/conftest.py index 433c291..e85e20d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -367,12 +367,10 @@ def test_func_wrapper(*args, **kwargs): test_func(*args, **kwargs) except (MaxRetryError, ConnectTimeout) as err: pytest.xfail(f"Download failed for {test_func.__name__}: {err}") - raise err # Also for Exception if the test includes "Bad Gateway" except Exception as err: # pylint: disable=broad-except if "Bad Gateway" in str(err): # specific error pytest.xfail(f"Download failed for {test_func.__name__}: {err}") - raise err raise err # broader error - not marked as xfail return test_func_wrapper