Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ repos:
hooks:
- id: actionlint-docker
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
rev: v0.14.0
hooks:
- id: ruff
- id: ruff-check
files: ^(cloudsplaining/|setup.py)
- id: ruff-format
4 changes: 1 addition & 3 deletions cloudsplaining/scan/role_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ def get_all_iam_statements_for_role(self, name: str) -> list[StatementDetail] |
@property
def role_names(self) -> list[str]:
"""Get a list of all role names in the account"""
results = [role_detail.role_name for role_detail in self.roles]
results.sort()
return results
return sorted(role_detail.role_name for role_detail in self.roles)

@property
def all_infrastructure_modification_actions_by_inline_policies(self) -> list[str]:
Expand Down
10 changes: 5 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# unique to ReadTheDocs
atomicwrites==1.4.1
distlib==0.4.0
filelock==3.18.0
filelock==3.19.1
mkdocs==1.6.1
mkdocs-material==9.6.16
mkdocs-material==9.6.21
mkdocs-material-extensions==1.3.1
mkdocstrings==0.30.0
mkdocstrings-python==1.16.12
mkdocstrings==0.30.1
mkdocstrings-python==1.18.2
mkdocstrings-python-legacy==0.2.7
Pygments==2.19.2
pymdown-extensions==10.16.1
pytkdocs==0.16.5
docutils==0.22
docutils==0.22.2
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[tool.mypy]
files = "cloudsplaining"
local_partial_types = true # will become the new default from version 2
allow_redefinition_new = true # will become the new default from version 2
fixed_format_cache = true # new caching mechanism
strict = true
pretty = true
disallow_untyped_decorators = false
Expand Down Expand Up @@ -34,6 +36,7 @@ select = [
"PIE",
"PLE",
"PLW",
"PYI",
"RUF",
"S",
"SIM",
Expand Down
13 changes: 7 additions & 6 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
-r requirements.txt
# CI
pre-commit==4.2.0
pre-commit==4.3.0
# Unit testing
pytest==8.4.1
coverage==7.10.1
pytest==8.4.2
coverage==7.10.7
# type check
mypy[faster-cache]==1.17.1
boto3-stubs-lite[iam,s3,sts]==1.40.1
types-PyYAML==6.0.12.20250516
mypy==1.18.2
boto3-stubs-lite[iam,s3,sts]==1.40.50
types-PyYAML==6.0.12.20250915
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# AWS
boto3==1.40.1
botocore==1.40.1
boto3==1.40.50
botocore==1.40.50
# Speeds up IAM logic
cached-property==2.0.1
# Command line
click==8.1.8
click_option_group==0.5.7
click==8.1.8 # 8.2+ needs Python 3.10+
click_option_group==0.5.9
# Templating - required for exclusions YAML files and inserting content to HTML report
jinja2==3.1.6
pyyaml==6.0.2
pyyaml==6.0.3
# We render Markdown glossary files as HTML in the Cloudsplaining report
markdown==3.8.2
markdown==3.9
# AWS IAM Logic
policy-sentry==0.14.0
policy-sentry==0.14.1
# Schema validation
schema==0.7.7