Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 3fa60fd

Browse files
committed
Merge remote-tracking branch 'origin/next'
2 parents 6eedf4b + c0132fd commit 3fa60fd

File tree

14 files changed

+76
-40
lines changed

14 files changed

+76
-40
lines changed

.github/dependabot.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ updates:
44
- assignees:
55
- "thomas-vogels"
66
directory: "/"
7+
ignore:
8+
- dependency-name: "Sphinx"
79
open-pull-requests-limit: 10
810
package-ecosystem: "pip"
911
reviewers:

.github/workflows/lint.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
- name: Checkout out code
1919
uses: actions/checkout@v3
2020
- name: Set up Python 3.7
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v4
2222
with:
2323
python-version: 3.7
2424
- name: Cache pip
25-
uses: actions/cache@v3.0.2
25+
uses: actions/cache@v3.0.8
2626
with:
2727
path: ~/.cache/pip
2828
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-linters.txt') }}
@@ -47,11 +47,11 @@ jobs:
4747
- name: Checkout out code
4848
uses: actions/checkout@v3
4949
- name: Set up Python 3.7
50-
uses: actions/setup-python@v3
50+
uses: actions/setup-python@v4
5151
with:
5252
python-version: 3.7
5353
- name: Cache pip
54-
uses: actions/cache@v3.0.2
54+
uses: actions/cache@v3.0.8
5555
with:
5656
path: ~/.cache/pip
5757
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-linters.txt') }}

.github/workflows/unittest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
- name: Checkout out code
1717
uses: actions/checkout@v3
1818
- name: Set up Python 3.7
19-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: 3.7
2222
- name: Cache pip
23-
uses: actions/cache@v3.0.2
23+
uses: actions/cache@v3.0.8
2424
with:
2525
path: ~/.cache/pip
2626
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-*.txt') }}

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,29 @@ repos:
3939
hooks:
4040
- id: isort
4141
- repo: https://github.com/psf/black
42-
rev: 22.3.0
42+
rev: 22.8.0
4343
hooks:
4444
- id: black
4545
- repo: https://gitlab.com/pycqa/flake8
46-
rev: 4.0.1
46+
rev: 5.0.4
4747
hooks:
4848
- id: flake8
4949
additional_dependencies:
50-
- "flake8-bugbear==22.4.25"
51-
- "flake8-comprehensions==3.7.0"
50+
- "flake8-bugbear==22.9.11"
51+
- "flake8-comprehensions==3.10.0"
5252
- "flake8-docstrings==1.6.0"
5353
- "flake8-fixme==1.1.1"
5454
- repo: https://github.com/pre-commit/mirrors-mypy
55-
rev: v0.950
55+
rev: v0.971
5656
hooks:
5757
- id: mypy
5858
additional_dependencies:
59-
- "mypy-boto3~=1.22"
60-
- "types-PyYAML==6.0.7"
61-
- "types-setuptools==57.4.14"
62-
- "types-simplejson==3.17.6"
63-
- "types-tabulate==0.8.8"
64-
- "types-termcolor==1.1.4"
59+
- "mypy-boto3~=1.24"
60+
- "types-PyYAML==6.0.11"
61+
- "types-setuptools==65.3.0"
62+
- "types-simplejson==3.17.7"
63+
- "types-tabulate==0.8.11"
64+
- "types-termcolor==1.1.5"
6565
- repo: https://github.com/shellcheck-py/shellcheck-py
6666
rev: v0.7.2.1
6767
hooks:

bin/build_virtual_env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ source "$ARTHUR_VENV/bin/activate"
2323
echo "Creating or updating packages using pip..."
2424
python3 -m pip install --upgrade pip==20.3.4 --disable-pip-version-check
2525
python3 -m pip install --upgrade --requirement ./requirements-all.txt --disable-pip-version-check
26+
python3 setup.py develop
2627

2728
echo "To use this setup, you need to run:"
2829
echo " source '$ARTHUR_VENV/bin/activate'"

bin/send_health_check.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ set -o errexit
2929
FILENAME="/tmp/redshift_etl/config/environment.sh"
3030
echo "Attempting to read configuration environment variables from '$FILENAME'"
3131
if [ -r "$FILENAME" ]; then
32+
# shellcheck disable=SC1090
3233
source "$FILENAME"
3334
else
3435
echo "Failed to find '$FILENAME'"

cloudformation/dw_cluster.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ Parameters:
7474
Type: String
7575
Default: ""
7676

77+
AdditionalClusterIAMRole6:
78+
Description: (optional) ARN of an additional IAM role to associate with the Redshift cluster
79+
Type: String
80+
Default: ""
81+
7782
PreferredMaintenanceWindow:
7883
Description: (optional) Preferred maintenance window for the Redshift cluster
7984
Type: String
@@ -102,6 +107,9 @@ Conditions:
102107
HasAdditionalRole5:
103108
!Not [ !Equals [ !Ref "AdditionalClusterIAMRole5", "" ] ]
104109

110+
HasAdditionalRole6:
111+
!Not [ !Equals [ !Ref "AdditionalClusterIAMRole6", "" ] ]
112+
105113

106114
Resources:
107115

@@ -121,12 +129,26 @@ Resources:
121129
Description: "Parameter group for Redshift cluster"
122130
ParameterGroupFamily: "redshift-1.0"
123131
Parameters:
132+
- ParemeterName: "auto_analyze"
133+
ParemeterValue: "true"
134+
- ParemeterName: "auto_mv"
135+
ParemeterValue: "true"
136+
- ParemeterName: "datestyle "
137+
ParemeterValue: "ISO, MDY"
124138
- ParameterName: "require_ssl"
125139
ParameterValue: "true"
140+
- ParameterName: "enable_case_sensitive_identifier"
141+
ParameterValue: "false"
126142
- ParameterName: "enable_user_activity_logging"
127143
ParameterValue: "true"
144+
- ParameterName: "extra_float_digits"
145+
ParameterValue: 0
146+
- ParameterName: "max_concurrency_scaling_clusters"
147+
ParameterValue: 1
148+
- ParameterName: "search_path"
149+
ParameterValue: "$user, public"
128150
- ParameterName: "statement_timeout"
129-
ParameterValue: 7200000
151+
ParameterValue: 0
130152
- ParameterName: "wlm_json_configuration"
131153
ParameterValue: !Sub "[{ \"query_concurrency\": ${QueryConcurrency} }]"
132154
Tags:
@@ -162,6 +184,7 @@ Resources:
162184
- !If [ HasAdditionalRole3, !Ref "AdditionalClusterIAMRole3", !Ref "AWS::NoValue" ]
163185
- !If [ HasAdditionalRole4, !Ref "AdditionalClusterIAMRole4", !Ref "AWS::NoValue" ]
164186
- !If [ HasAdditionalRole5, !Ref "AdditionalClusterIAMRole5", !Ref "AWS::NoValue" ]
187+
- !If [ HasAdditionalRole6, !Ref "AdditionalClusterIAMRole6", !Ref "AWS::NoValue" ]
165188
MasterUsername:
166189
!Ref MasterUsername
167190
MasterUserPassword:

docker/.bash_profile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
#!/bin/bash
2+
13
# This is the default .bash_profile in a container.
24

35
# Get the aliases and functions
46
if [ -f ~/.bashrc ]; then
5-
. ~/.bashrc
7+
# shellcheck disable=SC1090
8+
source ~/.bashrc
69
fi
710

811
# Initial greeting
912
cat /opt/src/arthur-redshift-etl/etc/motd
13+
1014
echo -e "\nEnvironment settings:\n"
1115
arthur.py settings object_store.s3.* version
1216
echo

docker/.bashrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
#!/bin/bash
2+
13
# This is the default .bashrc file inside a container.
24

35
# Source global definitions
46
if [ -f /etc/bashrc ]; then
5-
. /etc/bashrc
7+
# shellcheck disable=SC1091
8+
source /etc/bashrc
69
fi
710

811
# Generally useful
@@ -15,8 +18,9 @@ alias develop="( \cd /opt/src/arthur-redshift-etl && python setup.py develop )"
1518
PS1='(aws:$AWS_PROFILE, prefix:$ARTHUR_DEFAULT_PREFIX) \$ '
1619

1720
if [[ -z "$VIRTUAL_ENV" ]]; then
21+
# shellcheck disable=SC1091
1822
source /opt/local/redshift_etl/venv/bin/activate
1923
fi
2024

21-
# Commandline completion
25+
# shellcheck disable=SC1091
2226
source /opt/src/arthur-redshift-etl/etc/arthur_completion.sh

docker/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ set -o errexit -o nounset
1919
export PATH="/opt/local/redshift_etl/bin:$PATH"
2020

2121
if [[ -r "/opt/local/redshift_etl/venv/bin/activate" ]]; then
22+
# shellcheck disable=SC1091
2223
source /opt/local/redshift_etl/venv/bin/activate
2324

2425
# Using "--quiet" here to reduce the startup noise for "end users."

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
author = "Data Engineering at Harry's"
2424

2525
# TODO(tom): Extract from setup.py
26-
version = "1.59"
26+
version = "1.64"
2727

2828
# -- General configuration ---------------------------------------------------
2929

requirements-linters.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# NOTE When changing versions here, be sure to keep .pre-commit-config.yaml consistent!
2-
black==22.3.0
3-
flake8==4.0.1
4-
flake8-bugbear==22.4.25
5-
flake8-comprehensions==3.7.0
2+
black==22.8.0
3+
flake8==5.0.4
4+
flake8-bugbear==22.9.11
5+
flake8-comprehensions==3.10.0
66
flake8-docstrings==1.6.0
77
flake8-fixme==1.1.1
88
isort==5.10.1
9-
mypy==0.950
10-
mypy-boto3~=1.22
9+
mypy==0.971
10+
mypy-boto3~=1.24
1111
mypy-extensions==0.4.3
1212
pre-commit==2.17.0
1313
pyupgrade==2.31.0
14-
types-PyYAML==6.0.7
15-
types-setuptools==57.4.14
16-
types-simplejson==3.17.6
17-
types-tabulate==0.8.8
18-
types-termcolor==1.1.4
14+
types-PyYAML==6.0.11
15+
types-setuptools==65.3.0
16+
types-simplejson==3.17.7
17+
types-tabulate==0.8.11
18+
types-termcolor==1.1.5

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# This is the set of packages need to run the code. All versions are pinned.
2-
arrow==1.2.2
3-
boto3==1.22.4
4-
botocore~=1.25
1+
# This is the set of packages needed to run the code. All versions are pinned.
2+
arrow==1.2.3
3+
boto3==1.23.10
4+
botocore~=1.26
55
docker==5.0.3
66
funcy==1.17
77
jmespath==0.10.0
@@ -10,7 +10,7 @@ pgpasslib==1.1.0
1010
psycopg2-binary==2.9.3
1111
PyYAML==6.0
1212
simplejson==3.17.6
13-
tabulate==0.8.9
13+
tabulate==0.8.10
1414
termcolor==1.1.0
15-
tqdm==4.64.0
15+
tqdm==4.64.1
1616
watchtower==3.0.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import find_packages, setup
22

3-
ARTHUR_VERSION = "1.63.0"
3+
ARTHUR_VERSION = "1.64.0"
44

55

66
setup(

0 commit comments

Comments
 (0)