File tree Expand file tree Collapse file tree
src/aws_durable_execution_sdk_python Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 python-version : ${{ matrix.python-version }}
4343 - name : Install Hatch
4444 run : |
45- python -m pip install hatch==1.15.0
45+ python -m pip install hatch==1.16.5
4646 - name : static analysis
4747 run : hatch fmt --check
4848 - name : type checking
Original file line number Diff line number Diff line change 4242 python-version : ${{ matrix.python-version }}
4343
4444 - name : Install Hatch
45- run : python -m pip install hatch==1.15.0
45+ run : python -m pip install hatch==1.16.5
4646
4747 - name : Setup and run Testing SDK
4848 working-directory : testing-sdk
@@ -102,7 +102,7 @@ jobs:
102102 env :
103103 AWS_DURABLE_SDK_URL : file://${{ github.workspace }}/language-sdk
104104 run : |
105- pip install hatch==1.15.0
105+ pip install hatch==1.16.5
106106 python -m pip install -e .
107107
108108 - name : Get integration examples
Original file line number Diff line number Diff line change 1+ name : Slack Notifications
2+
3+ on :
4+ issues :
5+ types : [opened, reopened, edited]
6+ pull_request_target :
7+ types : [opened, reopened, synchronize]
8+
9+ permissions : {}
10+
11+ jobs :
12+ notify :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Send issue notification to Slack
16+ if : github.event_name == 'issues'
17+ uses : slackapi/slack-github-action@v2.1.1
18+ with :
19+ webhook : ${{ secrets.SLACK_WEBHOOK_URL_ISSUE }}
20+ webhook-type : incoming-webhook
21+ payload : |
22+ {
23+ "action": "${{ github.event.action }}",
24+ "issue_url": "${{ github.event.issue.html_url }}",
25+ "package_name": "${{ github.repository }}"
26+ }
27+
28+ - name : Send pull request notification to Slack
29+ if : github.event_name == 'pull_request_target'
30+ uses : slackapi/slack-github-action@v2.1.1
31+ with :
32+ webhook : ${{ secrets.SLACK_WEBHOOK_URL_PR }}
33+ webhook-type : incoming-webhook
34+ payload : |
35+ {
36+ "action": "${{ github.event.action }}",
37+ "pr_url": "${{ github.event.pull_request.html_url }}",
38+ "package_name": "${{ github.repository }}"
39+ }
Original file line number Diff line number Diff line change 2727 python-version : " 3.11"
2828 - name : Install Hatch
2929 run : |
30- python -m pip install --upgrade hatch==1.15.0
30+ python -m pip install --upgrade hatch==1.16.5
3131 - name : Build release distributions
3232 run : |
3333 # NOTE: put your own distribution build steps here.
Original file line number Diff line number Diff line change 2727 python-version : ${{ matrix.python-version }}
2828 - name : Install Hatch
2929 run : |
30- python -m pip install --upgrade hatch==1.15.0
30+ python -m pip install --upgrade hatch==1.16.5
3131 - name : Build distribution
3232 run : hatch build
3333 - name : configure aws credentials
Original file line number Diff line number Diff line change 4242 SerDes ,
4343 deserialize ,
4444)
45- from aws_durable_execution_sdk_python .state import ExecutionState # noqa: TCH001
45+ from aws_durable_execution_sdk_python .state import ExecutionState # noqa: TC001
4646from aws_durable_execution_sdk_python .threading import OrderedCounter
4747from aws_durable_execution_sdk_python .types import Callback as CallbackProtocol
4848from aws_durable_execution_sdk_python .types import (
Original file line number Diff line number Diff line change @@ -1079,12 +1079,12 @@ def checkpoint(
10791079 self .client .checkpoint_durable_execution (
10801080 DurableExecutionArn = durable_execution_arn ,
10811081 CheckpointToken = checkpoint_token ,
1082- Updates = cast (Any , [o .to_dict () for o in updates ]),
1082+ Updates = cast (" Any" , [o .to_dict () for o in updates ]),
10831083 ** optional_params , # type: ignore[arg-type]
10841084 )
10851085 )
10861086
1087- return CheckpointOutput .from_dict (cast (MutableMapping [str , Any ], result ))
1087+ return CheckpointOutput .from_dict (cast (" MutableMapping[str, Any]" , result ))
10881088 except Exception as e :
10891089 checkpoint_error = CheckpointError .from_exception (e )
10901090 logger .exception (
@@ -1108,7 +1108,7 @@ def get_execution_state(
11081108 MaxItems = max_items ,
11091109 )
11101110 )
1111- return StateOutput .from_dict (cast (MutableMapping [str , Any ], result ))
1111+ return StateOutput .from_dict (cast (" MutableMapping[str, Any]" , result ))
11121112 except Exception as e :
11131113 error = GetExecutionStateError .from_exception (e )
11141114 logger .exception (
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ def my_summary(result: str) -> str:
502502 return "summary"
503503
504504 child_config : ChildConfig = ChildConfig [str ](
505- summary_generator = cast (SummaryGenerator , my_summary )
505+ summary_generator = cast (" SummaryGenerator" , my_summary )
506506 )
507507
508508 actual_result = child_handler (
Original file line number Diff line number Diff line change @@ -798,7 +798,7 @@ def test_envelope_type_preservation_after_roundtrip():
798798 result = _roundtrip_envelope (original )
799799
800800 # Verify types are preserved
801- assert type ( result ["none" ]) is type ( None )
801+ assert result ["none" ] is None
802802 assert type (result ["bool" ]) is bool
803803 assert type (result ["int" ]) is int
804804 assert type (result ["float" ]) is float
You can’t perform that action at this time.
0 commit comments