From 35cde07bf38125c7ada35e2b427c68af70a4949c Mon Sep 17 00:00:00 2001 From: Jennifer Tran Date: Wed, 15 May 2024 20:35:28 -0700 Subject: [PATCH] fix: remove unused local var, update ruff to exclude earthdataaccess/search.py --- pyproject.toml | 3 +++ tests/integration/test_auth.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f1d38a74..92e61470 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -127,6 +127,9 @@ src = ["earthaccess", "stubs", "tests"] [tool.ruff.lint] extend-select = ["I", "T20"] +[tool.ruff.lint.per-file-ignores] +"earthaccess/search.py" = ["T20"] + [tool.ruff.lint.isort] combine-as-imports = true diff --git a/tests/integration/test_auth.py b/tests/integration/test_auth.py index 279ada12..aef60299 100644 --- a/tests/integration/test_auth.py +++ b/tests/integration/test_auth.py @@ -59,7 +59,7 @@ def test_auth_can_read_from_netrc_file(): def test_auth_throws_exception_if_netrc_is_not_present(): activate_environment() delete_netrc() - with pytest.raises(Exception) as e_info: + with pytest.raises(Exception): earthaccess.login(strategy="netrc") assertions.assertRaises(FileNotFoundError)