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 .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
contents: read

env:
PREK_VERSION: '0.2.22'
PREK_VERSION: '0.3.1'

jobs:
prek:
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3.0.0
with:
just-version: '1'
- uses: j178/prek-action@91fd7d7cf70ae1dee9f4f44e7dfa5d1073fe6623 # v1.0.11
- uses: j178/prek-action@564dda4cfa5e96aafdc4a5696c4bf7b46baae5ac # v1.1.0
with:
prek-version: ${{ env.PREK_VERSION }}

Expand Down
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
repos:
- repo: https://github.com/rhysd/actionlint
rev: v1.7.9
rev: v1.7.10
hooks:
- id: actionlint-docker
priority: 1
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.14.14
hooks:
- id: ruff-check
priority: 1
files: ^(cloudsplaining/|setup.py)
- id: ruff-format
priority: 0
- repo: local
hooks:
- id: just-fmt
priority: 0
name: just fmt
language: system
pass_filenames: false
Expand Down
2 changes: 1 addition & 1 deletion cloudsplaining/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=missing-module-docstring
# ruff: noqa: RUF067
from __future__ import annotations

import logging
Expand Down
2 changes: 1 addition & 1 deletion cloudsplaining/command/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from cloudsplaining import set_log_level

if TYPE_CHECKING:
from mypy_boto3_iam import IAMClient
from types_boto3_iam import IAMClient

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion cloudsplaining/command/scan_multi_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from cloudsplaining.shared.validation import check_authorization_details_schema

if TYPE_CHECKING:
from mypy_boto3_s3 import S3ServiceResource
from types_boto3_s3 import S3ServiceResource

logger = logging.getLogger(__name__)
OK_GREEN = "\033[92m"
Expand Down
2 changes: 1 addition & 1 deletion cloudsplaining/scan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=missing-module-docstring
# ruff: noqa: RUF067
import logging

logger = logging.getLogger(__name__)
2 changes: 1 addition & 1 deletion cloudsplaining/shared/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=missing-module-docstring
# ruff: noqa: RUF067
import logging

logger = logging.getLogger(__name__)
2 changes: 1 addition & 1 deletion cloudsplaining/shared/aws_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if TYPE_CHECKING:
from boto3.resources.base import ServiceResource
from botocore.client import BaseClient
from mypy_boto3_sts import STSClient
from types_boto3_sts import STSClient

logger = logging.getLogger(__name__)

Expand Down
13 changes: 5 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ Twitter = "https://twitter.com/kmcquade3"

[dependency-groups]
dev = [
"boto3-stubs-lite[iam,s3,sts]>=1.40.0,<2.0.0",
"coverage>=7.13.0,<8.0.0",
"moto[sts]>=5.1.0,<6.0.0",
"prek>=0.2.22,<0.3.0",
"prek>=0.3.1,<0.4.0",
"pytest>=9.0.0,<10.0.0",
"rust-just>=1.45.0,<2.0.0",
"ty>=0.0.4,<0.1.0",
"rust-just>=1.46.0,<2.0.0",
"ty>=0.0.14,<0.1.0",
"types-boto3-lite[iam,s3,sts]>=1.40.0,<2.0.0",
"types-pyyaml>=6.0.12,<7.0.0",
]

Expand All @@ -66,7 +66,7 @@ docs = [
"mkdocs-material>=9.6.0,<10.0.0",
"mkdocs-material-extensions>=1.3.0,<2.0.0",
"mkdocstrings>=0.30.0,<1.1.0",
"mkdocstrings-python>=1.18.0,<3.0.0",
"mkdocstrings-python>=2.0.0,<3.0.0",
"mkdocstrings-python-legacy>=0.2.0,<0.3.0",
"pygments>=2.19.0,<3.0.0",
"pymdown-extensions>=10.16.0,<11.0.0",
Expand Down Expand Up @@ -164,6 +164,3 @@ python-version = "3.10"

[tool.ty.src]
include = ["examples", "cloudsplaining", "utils"]

[tool.ty.rules]
unused-ignore-comment = "error"
881 changes: 439 additions & 442 deletions uv.lock

Large diffs are not rendered by default.