Migrate python tool chain to uv and ruff

This commit is contained in:
2025-12-29 13:31:13 +01:00
parent df1d08312f
commit f8f5187358
12 changed files with 823 additions and 133 deletions

View File

@@ -49,7 +49,7 @@ def test_get_aws_ip_ranges_cached_invalid_file(mocker, fs, create_cache_dir) ->
response.status_code = 304
mocker.patch("requests.get", return_value=response)
with pytest.raises(digaws.CachedFileException):
with pytest.raises(digaws.CachedFileError):
digaws.get_aws_ip_ranges()
@@ -80,7 +80,7 @@ def test_get_aws_ip_ranges_invalid_status(mocker, fs, create_cache_dir) -> None:
response.status_code = 301
mocker.patch("requests.get", return_value=response)
with pytest.raises(digaws.UnexpectedRequestException) as e:
with pytest.raises(digaws.UnexpectedRequestError) as e:
digaws.get_aws_ip_ranges()
assert str(e.value).startswith("Unexpected response from")