Skip to content

Commit

Permalink
lint: reconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
cbueth committed Dec 4, 2024
1 parent 17cf648 commit b0802bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b0802bc

Please sign in to comment.