-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to CDK v1.137, pylint v2.12, and others to latest available (#417
) * Update to CDK v1.137, SAM CLI v1.36, and others to latest available Bumping versions of CDK, SAM CLI, Boto3, and other libraries that we depend on. * Update pylint to v2.12 plus refactoring flagged code The update of pylint returned a list of errors. These errors have been fixed as part of this commit. Additionally, refactored code that could use a refreshing haircut.
- Loading branch information
Showing
45 changed files
with
436 additions
and
439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
astroid~=2.6.4 | ||
botocore==1.21.2 | ||
boto3==1.18.2 | ||
isort==5.9.2 | ||
astroid~=2.9.0 | ||
botocore==1.23.26 | ||
boto3==1.20.26 | ||
isort==5.10.1 | ||
mock~=4.0.3 | ||
pylint~=2.9.3 | ||
pytest~=6.2.4 | ||
pylint~=2.12.2 | ||
pytest~=6.2.5 | ||
pyyaml>=5.4.1 | ||
schema~=0.7.4 | ||
tox==3.24.0 | ||
schema~=0.7.5 | ||
tox==3.24.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,7 +137,7 @@ def chunks(list_to_chunk, number_to_chunk_into): | |
|
||
def generate_pull_request_input(event, repo_name): | ||
return { | ||
"title": 'ADF {0} Automated Update PR'.format(event.ResourceProperties.Version), | ||
"title": f'ADF {event.ResourceProperties.Version} Automated Update PR', | ||
"description": PR_DESCRIPTION.format(event.ResourceProperties.Version), | ||
"targets": [ | ||
{ | ||
|
@@ -149,12 +149,13 @@ def generate_pull_request_input(event, repo_name): | |
} | ||
|
||
def generate_commit_input(repo_name, index, branch="master", parent_commit_id=None, puts=None, deletes=None): | ||
commit_action = "Delete" if deletes else "Create" | ||
output = { | ||
"repositoryName": repo_name, | ||
"branchName": branch, | ||
"authorName": "AWS ADF Builders Team", | ||
"email": "[email protected]", | ||
"commitMessage": "Automated Commit - {0} Part {1}".format("Delete" if deletes else "Create", index), | ||
"commitMessage": f"Automated Commit - {commit_action} Part {index}", | ||
"putFiles": puts if puts else [], | ||
"deleteFiles": deletes if deletes else [] | ||
} | ||
|
@@ -329,6 +330,6 @@ def create_adf_config_file(props: CustomResourceProperties) -> FileToCommit: | |
.encode() | ||
) | ||
|
||
with open("/tmp/adfconfig.yml", "wb") as f: | ||
f.write(adf_config) | ||
with open("/tmp/adfconfig.yml", mode="wb") as file: | ||
file.write(adf_config) | ||
return FileToCommit("adfconfig.yml", FileMode.NORMAL, adf_config) |
4 changes: 2 additions & 2 deletions
4
...strap_repository/adf-bootstrap/deployment/lambda_codebase/initial_commit/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Jinja2~=3.0.1 | ||
boto3==1.18.2 | ||
Jinja2~=3.0.3 | ||
boto3==1.20.26 | ||
cfn-custom-resource~=1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.