Skip to content

Commit

Permalink
fix: remove unused local var, update ruff to exclude earthdataaccess/…
Browse files Browse the repository at this point in the history
…search.py
  • Loading branch information
Jennifer Tran committed May 16, 2024
1 parent e130d0f commit 35cde07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 35cde07

Please sign in to comment.