diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8995d7f..cb3de9db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,16 @@ repos: - repo: https://github.com/rhysd/actionlint - rev: v1.7.4 + rev: v1.7.5 hooks: - id: actionlint-docker - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.96.2 + rev: v1.96.3 hooks: - id: terraform_fmt # - id: terraform_docs # args: ['--sort-by-required', '--no-providers'] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.1 + rev: v0.8.4 hooks: - id: ruff args: [--fix] diff --git a/requirements-dev.txt b/requirements-dev.txt index 62d05eff..e9a577e7 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,7 +6,7 @@ coverage==7.6.8 # Integration tests and tasks invoke==2.2.0 # Type hints -mypy[faster-cache]==1.13.0 +mypy[faster-cache]==1.14.1 types-pyyaml==6.0.12.20240917 types-requests==2.32.0.20241016 types-beautifulsoup4==4.12.0.20241020 diff --git a/test/writing/test_sid_group_crud.py b/test/writing/test_sid_group_crud.py index f4689aab..3f0b4d85 100644 --- a/test/writing/test_sid_group_crud.py +++ b/test/writing/test_sid_group_crud.py @@ -577,9 +577,12 @@ def test_exclude_actions_empty_sid_from_crud_output(self): } self.maxDiff = None print(json.dumps(result, indent=4)) + actual_actions = next( + (statement for statement in expected_result["Statement"] if statement["Sid"] == "S3WriteBucket"), None + ) expected_actions = expected_result["Statement"][0]["Action"] for action in expected_actions: - self.assertIn(action, result["Statement"][0]["Action"]) + self.assertIn(action, actual_actions["Action"]) # self.assertDictEqual(result, expected_result) def test_write_template_with_sts_actions(self):