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
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
audience: sts.amazonaws.com | |
aws-region: us-east-1 | |
role-to-assume: ${{ secrets[steps.detect-env-and-set-env-vars.outputs.sts_role_arn_secret_var_name] }} |
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
- name: Detect Environment and Set Environent Variables | |
id: detect-env-and-set-env-vars | |
run: | | |
import os | |
github_event_name = os.environ['GITHUB_EVENT_NAME'] | |
if github_event_name == 'pull_request': | |
target_branch_name = os.environ['GITHUB_BASE_REF'] | |
elif github_event_name == 'push': | |
target_branch_name = os.environ['GITHUB_REF_NAME'] |
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
import sys | |
from awsglue.transforms import * | |
from awsglue.utils import getResolvedOptions | |
from pyspark.context import SparkContext | |
from awsglue.context import GlueContext | |
from awsglue.job import Job | |
from awsglue.dynamicframe import DynamicFrame | |
# Importing required field types to define schema | |
from pyspark.sql.types import StringType, StructType, StructField, IntegerType |
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
import boto3 | |
import datetime | |
from botocore.exceptions import ClientError | |
from cloudformation_validator.ValidateUtility import ValidateUtility | |
s3_client = boto3.client("s3") | |
s3_resource = boto3.resource("s3") | |
cfn_client = boto3.client('cloudformation') | |
S3_BUCKET = 'linter-testing-bucket' |
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
import json | |
import boto3 | |
import datetime | |
from sqlfluff import lint | |
s3_client = boto3.client("s3") | |
s3_resource = boto3.resource("s3") | |
S3_BUCKET = 'linter-testing-bucket' | |
SQL_DIALECT = 'redshift' | |
EXCLUDED_RULES = ['L031'] #Using alias is allowed |
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
import boto3 | |
import datetime | |
from pylint import epylint as lint | |
''' | |
{ | |
"py_file_key": "input-scripts/python-scripts/input_python_script.py", | |
"py_file_bucket": "linter-testing-bucket" | |
} |
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
import os | |
import boto3 | |
import logging | |
import tempfile | |
import geopandas | |
MINIO_BUCKET = '<minio_bucket_name>' | |
SHAPE_FILE_NAME = '<shape_file_path_name>' | |
SHX_FILE_NAME = '<shx_file_path_name>' |
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
class House: | |
def __init__(self, name: str, symbol: str, student_list: list): | |
self.name = name | |
self.symbol = symbol | |
self.student_list = student_list | |
self.current_student_id = -1 | |
def __len__(self): | |
return len(self.student_list) |
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
class House: | |
def __init__(self, name: str, symbol: str, student_list: list): | |
self.name = name | |
self.symbol = symbol | |
self.student_list = student_list | |
self.current_student_id = -1 | |
def __len__(self): | |
return len(self.student_list) |
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
class House: | |
def __init__(self, name: str, symbol: str, student_list: list): | |
self.name = name | |
self.symbol = symbol | |
self.student_list = student_list | |
self.current_student_id = -1 | |
def __len__(self): | |
return len(self.student_list) |
NewerOlder