generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 468
Labels
internalMaintenance changesMaintenance changespending-releaseFix or implementation already in dev waiting to be releasedFix or implementation already in dev waiting to be releasedtypingStatic typing definition related issues (mypy, pyright, etc.)Static typing definition related issues (mypy, pyright, etc.)
Description
Why is this needed?
This is a sub-issue of #7902.
We need to integrate ty into our CI pipeline as the first step toward adopting it as our Python type checker. To enable incremental adoption, ty should be configured to exclude modules that currently have diagnostics, allowing CI to pass while we address issues in subsequent PRs.
Which area does this relate to?
- Static typing
- Automation
Solution
- Add
tyas a dev dependency - Configure ty in
pyproject.tomlexcluding modules with existing diagnostics:logging/(1 diagnostic)utilities/validation/(1 diagnostic)shared/(2 diagnostics)metrics/(2 diagnostics)middleware_factory/(2 diagnostics)utilities/streaming/(2 diagnostics)utilities/parameters/(4 diagnostics)utilities/parser/(5 diagnostics)utilities/data_masking/(6 diagnostics)tracing/(13 diagnostics)utilities/data_classes/(14 diagnostics)utilities/batch/(18 diagnostics)utilities/idempotency/(19 diagnostics)event_handler/(85 diagnostics)
- Add GitHub Actions workflow job for ty
- Ensure CI passes with the baseline configuration
Acknowledgment
- This request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
internalMaintenance changesMaintenance changespending-releaseFix or implementation already in dev waiting to be releasedFix or implementation already in dev waiting to be releasedtypingStatic typing definition related issues (mypy, pyright, etc.)Static typing definition related issues (mypy, pyright, etc.)
Type
Projects
Status
Coming soon