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
11 changes: 6 additions & 5 deletions .github/workflows/quality_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ name: Quality check - check code
#
# Always triggered on new PRs, PR changes and PR merge.


on:
pull_request:
paths:
Expand Down Expand Up @@ -46,13 +45,13 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: ["3.10","3.11","3.12","3.13","3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
env:
PYTHON: "${{ matrix.python-version }}"
permissions:
contents: read # checkout code only
contents: read # checkout code only
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -65,8 +64,10 @@ jobs:
run: make format-check
- name: Formatting and Linting
run: make lint
- name: Static type checking
- name: Static type checking (mypy)
run: make mypy
- name: Static type checking (ty)
run: make ty
- name: Test with pytest
run: make test
- name: Test dependencies with Nox
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ changelog:
mypy:
poetry run mypy --pretty aws_lambda_powertools examples

ty:
poetry run ty check .

dev-version-plugin:
poetry self add git+https://github.com/monim67/poetry-bumpversion@348de6f247222e2953d649932426e63492e0a6bf
43 changes: 35 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ mkdocs-llmstxt = ">=0.2,<0.5"
avro = "^1.12.0"
protobuf = "^6.30.2"
types-protobuf = "^6.30.2.20250516"
ty = "^0.0.10"

[tool.coverage.run]
source = ["aws_lambda_powertools"]
Expand Down Expand Up @@ -215,3 +216,30 @@ generate-setup-file = true
[tool.poetry_bumpversion.file."aws_lambda_powertools/shared/version.py"]
search = 'VERSION = "{current_version}"'
replace = 'VERSION = "{new_version}"'

[tool.ty]
# ty type checker configuration

[tool.ty.src]
include = ["aws_lambda_powertools/**"]
exclude = [
"tests/**",
"examples/**",
"docs/**",
# Baseline exclusions - modules with existing diagnostics (issue #7927)
# These will be addressed incrementally in follow-up PRs
"aws_lambda_powertools/logging/**",
"aws_lambda_powertools/utilities/validation/**",
"aws_lambda_powertools/shared/**",
"aws_lambda_powertools/metrics/**",
"aws_lambda_powertools/middleware_factory/**",
"aws_lambda_powertools/utilities/streaming/**",
"aws_lambda_powertools/utilities/parameters/**",
"aws_lambda_powertools/utilities/parser/**",
"aws_lambda_powertools/utilities/data_masking/**",
"aws_lambda_powertools/tracing/**",
"aws_lambda_powertools/utilities/data_classes/**",
"aws_lambda_powertools/utilities/batch/**",
"aws_lambda_powertools/utilities/idempotency/**",
"aws_lambda_powertools/event_handler/**",
]