Skip to content

Commit 703f5a8

Browse files
committed
updaet prek to v0.3 and replace boto3-stubs
1 parent 4360ad6 commit 703f5a8

File tree

10 files changed

+458
-460
lines changed

10 files changed

+458
-460
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
contents: read
1313

1414
env:
15-
PREK_VERSION: '0.2.22'
15+
PREK_VERSION: '0.3.1'
1616

1717
jobs:
1818
prek:
@@ -25,7 +25,7 @@ jobs:
2525
- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3.0.0
2626
with:
2727
just-version: '1'
28-
- uses: j178/prek-action@91fd7d7cf70ae1dee9f4f44e7dfa5d1073fe6623 # v1.0.11
28+
- uses: j178/prek-action@564dda4cfa5e96aafdc4a5696c4bf7b46baae5ac # v1.1.0
2929
with:
3030
prek-version: ${{ env.PREK_VERSION }}
3131

.pre-commit-config.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
repos:
22
- repo: https://github.com/rhysd/actionlint
3-
rev: v1.7.9
3+
rev: v1.7.10
44
hooks:
55
- id: actionlint-docker
6+
priority: 1
67
- repo: https://github.com/astral-sh/ruff-pre-commit
7-
rev: v0.14.10
8+
rev: v0.14.14
89
hooks:
910
- id: ruff-check
11+
priority: 1
1012
files: ^(cloudsplaining/|setup.py)
1113
- id: ruff-format
14+
priority: 0
1215
- repo: local
1316
hooks:
1417
- id: just-fmt
18+
priority: 0
1519
name: just fmt
1620
language: system
1721
pass_filenames: false

cloudsplaining/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=missing-module-docstring
1+
# ruff: noqa: RUF067
22
from __future__ import annotations
33

44
import logging

cloudsplaining/command/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from cloudsplaining import set_log_level
2222

2323
if TYPE_CHECKING:
24-
from mypy_boto3_iam import IAMClient
24+
from types_boto3_iam import IAMClient
2525

2626
logger = logging.getLogger(__name__)
2727

cloudsplaining/command/scan_multi_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from cloudsplaining.shared.validation import check_authorization_details_schema
2323

2424
if TYPE_CHECKING:
25-
from mypy_boto3_s3 import S3ServiceResource
25+
from types_boto3_s3 import S3ServiceResource
2626

2727
logger = logging.getLogger(__name__)
2828
OK_GREEN = "\033[92m"

cloudsplaining/scan/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=missing-module-docstring
1+
# ruff: noqa: RUF067
22
import logging
33

44
logger = logging.getLogger(__name__)

cloudsplaining/shared/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=missing-module-docstring
1+
# ruff: noqa: RUF067
22
import logging
33

44
logger = logging.getLogger(__name__)

cloudsplaining/shared/aws_login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if TYPE_CHECKING:
1313
from boto3.resources.base import ServiceResource
1414
from botocore.client import BaseClient
15-
from mypy_boto3_sts import STSClient
15+
from types_boto3_sts import STSClient
1616

1717
logger = logging.getLogger(__name__)
1818

pyproject.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ Twitter = "https://twitter.com/kmcquade3"
4747

4848
[dependency-groups]
4949
dev = [
50-
"boto3-stubs-lite[iam,s3,sts]>=1.40.0,<2.0.0",
5150
"coverage>=7.13.0,<8.0.0",
5251
"moto[sts]>=5.1.0,<6.0.0",
53-
"prek>=0.2.22,<0.3.0",
52+
"prek>=0.3.1,<0.4.0",
5453
"pytest>=9.0.0,<10.0.0",
55-
"rust-just>=1.45.0,<2.0.0",
56-
"ty>=0.0.4,<0.1.0",
54+
"rust-just>=1.46.0,<2.0.0",
55+
"ty>=0.0.14,<0.1.0",
56+
"types-boto3-lite[iam,s3,sts]>=1.40.0,<2.0.0",
5757
"types-pyyaml>=6.0.12,<7.0.0",
5858
]
5959

@@ -66,7 +66,7 @@ docs = [
6666
"mkdocs-material>=9.6.0,<10.0.0",
6767
"mkdocs-material-extensions>=1.3.0,<2.0.0",
6868
"mkdocstrings>=0.30.0,<1.1.0",
69-
"mkdocstrings-python>=1.18.0,<3.0.0",
69+
"mkdocstrings-python>=2.0.0,<3.0.0",
7070
"mkdocstrings-python-legacy>=0.2.0,<0.3.0",
7171
"pygments>=2.19.0,<3.0.0",
7272
"pymdown-extensions>=10.16.0,<11.0.0",
@@ -164,6 +164,3 @@ python-version = "3.10"
164164

165165
[tool.ty.src]
166166
include = ["examples", "cloudsplaining", "utils"]
167-
168-
[tool.ty.rules]
169-
unused-ignore-comment = "error"

uv.lock

Lines changed: 439 additions & 442 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)