Skip to content

Commit 94f24a5

Browse files
dependabot[bot]vicheeymbfreder
authored
chore(deps-dev): bump ruff from 0.9.9 to 0.11.2 in /requirements (#7947)
* chore(deps-dev): bump ruff from 0.9.9 to 0.11.2 in /requirements Bumps [ruff](https://github.com/astral-sh/ruff) from 0.9.9 to 0.11.2. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.9.9...0.11.2) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix ruff PLW1508 make pr issue * update test following PLW1508 fix --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: vicheey <181402101+vicheey@users.noreply.github.com> Co-authored-by: Frederic Mbea <117131783+mbfreder@users.noreply.github.com> Co-authored-by: Vichym <vichym@amazon.com>
1 parent 8c0634f commit 94f24a5

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

requirements/pre-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruff==0.9.9
1+
ruff==0.11.2

samcli/local/docker/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
LOG = logging.getLogger(__name__)
4141

42-
CONTAINER_CONNECTION_TIMEOUT = float(os.environ.get("SAM_CLI_CONTAINER_CONNECTION_TIMEOUT", 20))
42+
CONTAINER_CONNECTION_TIMEOUT = float(os.environ.get("SAM_CLI_CONTAINER_CONNECTION_TIMEOUT", "20"))
4343
DEFAULT_CONTAINER_HOST_INTERFACE = "127.0.0.1"
4444

4545
# Keep a lock instance to access the locks for individual containers (see dict below)

samcli/local/lambdafn/remote_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def unzip_from_uri(uri, layer_zip_path, unzip_output_dir, progressbar_label):
3030
Label to use in the Progressbar
3131
"""
3232
try:
33-
get_request = requests.get(uri, stream=True, verify=os.environ.get("AWS_CA_BUNDLE", True))
33+
get_request = requests.get(uri, stream=True, verify=os.environ.get("AWS_CA_BUNDLE") or True)
3434

3535
with open(layer_zip_path, "wb") as local_layer_file:
3636
file_length = int(get_request.headers["Content-length"])

tests/unit/local/lambdafn/test_remote_files.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_successfully_unzip_from_uri(
3636
path_patch.assert_called_with("layer_zip_path")
3737
path_mock.unlink.assert_called()
3838
unzip_patch.assert_called_with("layer_zip_path", "output_zip_dir", permission=0o700)
39-
os_patch.environ.get.assert_called_with("AWS_CA_BUNDLE", True)
39+
os_patch.environ.get.assert_called_with("AWS_CA_BUNDLE")
4040

4141
@patch("samcli.local.lambdafn.remote_files.unzip")
4242
@patch("samcli.local.lambdafn.remote_files.Path")
@@ -69,7 +69,7 @@ def test_not_unlink_file_when_file_doesnt_exist(
6969
path_patch.assert_called_with("layer_zip_path")
7070
path_mock.unlink.assert_not_called()
7171
unzip_patch.assert_called_with("layer_zip_path", "output_zip_dir", permission=0o700)
72-
os_patch.environ.get.assert_called_with("AWS_CA_BUNDLE", True)
72+
os_patch.environ.get.assert_called_with("AWS_CA_BUNDLE")
7373

7474
@patch("samcli.local.lambdafn.remote_files.unzip")
7575
@patch("samcli.local.lambdafn.remote_files.Path")
@@ -102,4 +102,4 @@ def test_unzip_from_uri_reads_AWS_CA_BUNDLE_env_var(
102102
path_patch.assert_called_with("layer_zip_path")
103103
path_mock.unlink.assert_called()
104104
unzip_patch.assert_called_with("layer_zip_path", "output_zip_dir", permission=0o700)
105-
os_patch.environ.get.assert_called_with("AWS_CA_BUNDLE", True)
105+
os_patch.environ.get.assert_called_with("AWS_CA_BUNDLE")

0 commit comments

Comments
 (0)