Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tests, docs, linting, remove pandas dep #265

Merged
merged 142 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
50aee2f
Configure Snowflake Schema via Config (#210)
podung Nov 15, 2023
d7f8906
Preparing for 3.6.2 Release
sfc-gh-tmathew Dec 7, 2023
04d5fca
feat: format the repo with black
Jan 10, 2024
e3545df
feat: format the repo with black
Jan 10, 2024
3cc0bb5
fix: ignore comment blocks
Jan 10, 2024
96cad29
feat: unpack lambda per flake8
Jan 10, 2024
0a5c9aa
fix: remove broken link
Jan 10, 2024
9c7d388
docs: syntax and markdown table reformatting
Jan 10, 2024
cd4b739
feat: multiple
Jan 10, 2024
89801d3
feat: black formatting
Jan 10, 2024
f615779
fix: fix type annotations
Jan 10, 2024
7e5e047
Merge branch 'master' into dev
sfc-gh-tmathew Mar 13, 2024
92848dc
Preparing release mgmt changes
sfc-gh-tmathew Mar 13, 2024
a3fa486
Adding Pyupgrade to reformat code
sfc-gh-tmathew Mar 25, 2024
e97914b
updated the code based on pyupgrade and ruff linting
sfc-gh-tmathew Mar 25, 2024
c2c97fb
linting done using black formatter
sfc-gh-tmathew Mar 25, 2024
e413286
updating the cli with formatted with black formatter
sfc-gh-tmathew Mar 25, 2024
e063ce0
push black formatter as well
sfc-gh-tmathew Mar 25, 2024
0274ac6
moved snowflake params call to its own method.
sfc-gh-tmathew Mar 25, 2024
7523150
formatted tests with black formatter.
sfc-gh-tmathew Mar 25, 2024
54f178d
Updated black formatter for tests as well.
sfc-gh-tmathew Mar 25, 2024
5d5b855
Updated Test cases Plus Ruff formatted
sfc-gh-tmathew Mar 26, 2024
d158656
Added ruff cache to ignore
sfc-gh-tmathew Mar 26, 2024
48a3b14
added test cases for change history table.
sfc-gh-tmathew Mar 27, 2024
aae7474
reverting the ruff cache ignore
sfc-gh-tmathew Mar 28, 2024
02393a3
pushing support for 3.11
sfc-gh-tmathew Mar 28, 2024
8a8ed31
Merge pull request #236 from Snowflake-Labs/ops/release_mgmt_improvem…
sfc-gh-tmathew Mar 28, 2024
d5c3aea
Removed the pandas library as a requirement (#232)
rosspb3 Apr 2, 2024
908587d
Merge branch 'dev' into feature/add_identifier_function_to_SQL_calls
sfc-gh-tmathew Apr 3, 2024
ff59dc6
linting code using black formatter
sfc-gh-tmathew Apr 3, 2024
7456bc3
Delegate validation to identifier function in snowflake
sfc-gh-tmathew Apr 3, 2024
8a4942e
Leverage version number from setup.cfg
sfc-gh-tmathew Apr 4, 2024
411b61f
Updated test case for version check
sfc-gh-tmathew Apr 4, 2024
7e86d55
Based on ruff and black compatibility
sfc-gh-tmathew Apr 4, 2024
740356c
Updating github Actions to latest versions
sfc-gh-tmathew Apr 4, 2024
d12df86
experimenting with precommit
sfc-gh-tmathew Apr 4, 2024
95af260
Limiting testing on PRs to main and dev
sfc-gh-tmathew Apr 4, 2024
d9e4599
trying dynamic versioning
sfc-gh-tmathew Apr 4, 2024
7f9de98
getting latest actions versions
sfc-gh-tmathew Apr 4, 2024
e51716d
limiting dev test to a single python version on actions.
sfc-gh-tmathew Apr 4, 2024
18e4f99
Update cli.py
opodoprigora Apr 4, 2024
a04e6d2
restore space
opodoprigora Apr 4, 2024
960b21c
Update cli.py
opodoprigora Apr 10, 2024
5ddea4c
Merge branch 'dev' into log-current-session-id
sfc-gh-tmathew Apr 11, 2024
ac257a2
Merge pull request #245 from opodoprigora/log-current-session-id
sfc-gh-tmathew Apr 11, 2024
ad4d75e
Merge branch 'master' into dev
sfc-gh-tmathew Apr 11, 2024
1b0a29f
Merge branch 'dev' into feature/add_identifier_function_to_SQL_calls
sfc-gh-tmathew Apr 11, 2024
1c93a7e
Fixing pyproject.toml
sfc-gh-tmathew Apr 11, 2024
cc8cc02
Adding github manual execution option in dev
sfc-gh-tmathew Apr 11, 2024
543faf9
Setting up github actions
sfc-gh-tmathew Apr 11, 2024
67fad54
Merge pull request #247 from Snowflake-Labs/feature/add_identifier_fu…
sfc-gh-tmathew Apr 13, 2024
05d5149
fixed Citibike Demo against target database
sfc-gh-tmathew Apr 14, 2024
2c851fc
Updating demo scripts
sfc-gh-tmathew Apr 14, 2024
de00956
Adding Documentation + Scripts for teardown
sfc-gh-tmathew Apr 14, 2024
a24e59c
Adding Setup and teardown sql scripts for demo scenarios
sfc-gh-tmathew Apr 14, 2024
e840f4e
adding missing variable
sfc-gh-tmathew Apr 15, 2024
a3f47fb
Adding citibike demo testing
sfc-gh-tmathew Apr 15, 2024
b7f220f
Added missing variables for Deployment Test on Master branch
sfc-gh-tmathew Apr 15, 2024
dbbf820
Merge pull request #248 from Snowflake-Labs/feature/test_demo
sfc-gh-tmathew Apr 16, 2024
01448d9
Preparing 3.6.2 Release Changelog
sfc-gh-tmathew Apr 16, 2024
26514ad
Testing github actions with for multiple workflows
sfc-gh-tmathew May 6, 2024
b25e082
testing Release branch
sfc-gh-tmathew May 6, 2024
49e916c
testing setup teardown using schemachange
sfc-gh-tmathew May 6, 2024
7cf619f
testing snowsql variable substitution
sfc-gh-tmathew May 6, 2024
4e9ae5b
testing snowsql
sfc-gh-tmathew May 6, 2024
4105da9
Testing schemachange using schemachange
sfc-gh-tmathew May 6, 2024
d346f49
Setting missing configs
sfc-gh-tmathew May 6, 2024
151ea37
parameterizing the basics Demo
sfc-gh-tmathew May 6, 2024
8655a50
testing Matrix options for scenarios
sfc-gh-tmathew May 6, 2024
5682aa6
Completing citibike setup
sfc-gh-tmathew May 6, 2024
ac2b6e6
Testing the matrix options in dev before setting up for master
sfc-gh-tmathew May 6, 2024
209361c
testing windows latest push
sfc-gh-tmathew May 6, 2024
e8f8bed
testing windows setup
sfc-gh-tmathew May 6, 2024
17c1245
testing powershell syntax
sfc-gh-tmathew May 6, 2024
fe2a874
testing rendering option in schemachange as well
sfc-gh-tmathew May 6, 2024
1a309ab
fixing path references
sfc-gh-tmathew May 6, 2024
d07feee
Pushing final changes for github actions changes
sfc-gh-tmathew May 6, 2024
b5f412e
testing in dev before merging for 3.6.2 release
sfc-gh-tmathew May 7, 2024
ffdceb1
testing EOF error
sfc-gh-tmathew May 7, 2024
2ca2c83
checking comment in the last line.
sfc-gh-tmathew May 7, 2024
c19dfb9
workaround for last comment line included in basics demo file.
sfc-gh-tmathew May 7, 2024
c435d46
testing bash shell as default for runner
sfc-gh-tmathew May 7, 2024
88bf273
preparing github actions to operate on PRs and tags
sfc-gh-tmathew May 7, 2024
212d2ea
Test stored proc block
sfc-gh-tmathew May 9, 2024
c0a25fd
workaround example for stored proc block
sfc-gh-tmathew May 9, 2024
d10954e
Testing stored procedure creation
sfc-gh-tmathew May 9, 2024
79c37a3
testing procedure code in schemachange
sfc-gh-tmathew May 9, 2024
8ee69d3
Ensuring Teardown happens whether deployment is successful or fails.
sfc-gh-tmathew May 9, 2024
d27fdeb
added missing privileges for demo
sfc-gh-tmathew May 9, 2024
67e33ff
testing failure path to teardown
sfc-gh-tmathew May 9, 2024
7ff61a6
controlling schemachange exit codes
sfc-gh-tmathew May 9, 2024
a5c3a7e
Completed testing stored procedures as well.
sfc-gh-tmathew May 9, 2024
2a3d009
Updating documentation in batches
sfc-gh-tmathew May 13, 2024
6c2c4f4
Adding method to return valid snowflake identifier string with test c…
sfc-gh-tmathew Jun 2, 2024
18c72a0
Added tests to check handle snowflake identifier fields during config…
sfc-gh-tmathew Jun 2, 2024
12893d9
Making the test for double quoted identifiers visible
sfc-gh-tmathew Jun 2, 2024
e4cdb7b
testing double quotes
sfc-gh-tmathew Jun 2, 2024
b2b3882
managing the call for testing hypenated identifiers
sfc-gh-tmathew Jun 2, 2024
b41e8e1
Tracing the reset clause to ensure correct rendering of double quoted…
sfc-gh-tmathew Jun 2, 2024
746abf8
testing rendering snowflake variable
sfc-gh-tmathew Jun 2, 2024
78bba8c
testing snowflake identifier tests
sfc-gh-tmathew Jun 2, 2024
afe4535
testing hyphenated role support
sfc-gh-tmathew Jun 2, 2024
583208a
testing passing double quoted string using environment variables.
sfc-gh-tmathew Jun 2, 2024
fbc9231
handling double quotes from environment variable
sfc-gh-tmathew Jun 2, 2024
81cc5f0
env variable
sfc-gh-tmathew Jun 2, 2024
686376a
Ignore README file changes to trigger Workflow.
sfc-gh-tmathew Jun 2, 2024
d18ca73
Ignore workflow trigger if only readme files are changed.
sfc-gh-tmathew Jun 2, 2024
f49e155
testing workflow trigger
sfc-gh-tmathew Jun 2, 2024
8ac3ebf
testing Markdown trigger to be skipped.
sfc-gh-tmathew Jun 2, 2024
fe691a5
adding gitgaurdian to repository
sfc-gh-tmathew Jun 7, 2024
198b4ef
Ran through Pre-commit and ggshield checks
sfc-gh-tmathew Jun 7, 2024
63347eb
Removed Pandas as a dependency and replaced that uses it
chandramouli-soorian Jul 2, 2024
54f8003
Create python-package.yml
naruvimama Jul 2, 2024
175cbce
Merge pull request #1 from naruvimama/remove-pandas-deps-patch-001
naruvimama Jul 2, 2024
a93cb98
Update python-package.yml
naruvimama Jul 2, 2024
9c0a36c
Updated Main readme file for typos and references
sfc-gh-tmathew Jul 8, 2024
aa85586
commiting install readme details
sfc-gh-tmathew Jul 11, 2024
b7f2a05
Set github actions for Dev to be manual Only.
sfc-gh-tmathew Jul 11, 2024
48f7a33
testing event triggers
sfc-gh-tmathew Jul 11, 2024
da47d5a
Merge branch 'master' into dev
sfc-gh-tmathew Jul 11, 2024
8d3944b
Merge branch 'dev' into release/3.6.3_Prepare
sfc-gh-tmathew Jul 11, 2024
c23c9de
conditional trigger
sfc-gh-tmathew Jul 11, 2024
54be9ea
update to ci step
sfc-gh-tmathew Jul 11, 2024
a3af8ca
testing label driven PRs
sfc-gh-tmathew Jul 11, 2024
3380067
Cleaning up and updating docs for 3.6.3 release
sfc-gh-tmathew Jul 11, 2024
c0f5597
Updating test cases
sfc-gh-tmathew Jul 11, 2024
248ecf1
PR triggered only if labeled to run CI by maintainers
sfc-gh-tmathew Jul 12, 2024
3d36e23
Merge branch 'dev' into remove-pandas-deps
sfc-gh-tmathew Jul 17, 2024
ab183ad
Merge pull request #259 from naruvimama/remove-pandas-deps
sfc-gh-tmathew Jul 17, 2024
79ac12a
Update version to 3.7.0
sfc-gh-tmathew Jul 17, 2024
978e2bf
Merge branch 'dev' into release/3.7.0_Prepare
sfc-gh-tmathew Jul 17, 2024
42cbe47
Incorporating linting and depenency checks in the dev branch.
sfc-gh-tmathew Jul 17, 2024
236a2fe
installing schemachange as part of ci/cd process and testing
sfc-gh-tmathew Jul 17, 2024
64c5ee0
addressing formatting changes reported by flake8 linting
sfc-gh-tmathew Jul 17, 2024
3ad238a
clearing flake8 linting issues
sfc-gh-tmathew Jul 17, 2024
b3fe451
addressing easy flake8 changes
sfc-gh-tmathew Jul 17, 2024
872f5e5
syncing flake8 changes for master branch
sfc-gh-tmathew Jul 17, 2024
3b5718a
Merge pull request #264 from Snowflake-Labs/release/3.7.0_Prepare
sfc-gh-tmathew Jul 17, 2024
7ff5293
Merge branch 'dev' into format-with-black
sfc-gh-twhite Jul 18, 2024
a6b76ea
Merge pull request #217 from zanebclark/format-with-black
sfc-gh-twhite Jul 18, 2024
bca45ca
chore: linting
sfc-gh-twhite Jul 22, 2024
0192605
Merge branch 'master' into dev
sfc-gh-tmathew Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 67 additions & 11 deletions .github/workflows/dev-pytest.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,88 @@
name: dev-pytest

on:
push:
branches:
- dev
defaults:
run:
shell: bash

on:
workflow_dispatch:

pull_request:
types:
- labeled
branches:
- dev

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scenario-name: [ 'basics_demo', 'citibike_demo', 'citibike_demo_jinja']
os: ["ubuntu-latest"]
python-version: ["3.11"]
runs-on: ${{ matrix.os }}
if: ${{ github.event.label.name == 'ci-run-tests' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}

env:
SNOWFLAKE_PASSWORD: ${{ secrets.SCHEMACHANGE_SNOWFLAKE_PASSWORD }}
SNOWFLAKE_USER: ${{ secrets.SCHEMACHANGE_SNOWFLAKE_USER }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SCHEMACHANGE_SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_DATABASE: SCHEMACHANGE_DEMO
SNOWFLAKE_WAREHOUSE: SCHEMACHANGE_DEMO_WH
SNOWFLAKE_ROLE: '"SCHEMACHANGE_DEMO-DEPLOY"'
MY_TARGET_SCHEMA: ${{ matrix.scenario-name }}_${{ github.run_number }}_${{ strategy.job-index }}
SCENARIO_NAME: ${{ matrix.scenario-name }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Update pip
run: |
python -m pip install --upgrade pip
python-version: ${{ matrix.python-version }}
# The next few steps (Install dependencies, Lint with Flake8, Test with Pytest) will install Python dependencies,
# run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install -e .[dev]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
id: pytest
run: |
pytest
# Testing Schemachange demo projects
- name: Test Schemachange on ${{ matrix.os }} targeting ${{ env.SNOWFLAKE_DATABASE }}.${{ env.MY_TARGET_SCHEMA }} schema
run: |
echo "::group::Setting up ${MY_TARGET_SCHEMA}"
schemachange deploy --config-folder ./demo/setup/${SCENARIO_NAME}
echo "::endgroup::"
echo "::group::Testing Rendering to ${MY_TARGET_SCHEMA}"
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/A__render.sql
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/R__render.sql
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/V1.0.0__render.sql
echo "::endgroup::"
echo "::group::Testing Deployment using ${MY_TARGET_SCHEMA}"
set +e
schemachange deploy --config-folder ./demo/${SCENARIO_NAME}
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "Deployment Completed!"
else
echo "Deployment Failed. Proceeding to Teardown."
fi
echo "::endgroup::"
set -e
echo "::group::Tearing down up ${MY_TARGET_SCHEMA}"
schemachange deploy --config-folder ./demo/teardown/${SCENARIO_NAME}
echo "::endgroup::"
if [ $RESULT -ne 0 ]; then
exit 1
fi
92 changes: 92 additions & 0 deletions .github/workflows/master-pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: master-pytest

defaults:
run:
shell: bash

on:
workflow_dispatch:

pull_request:
types:
- labeled
branches:
- main

push:
tags:
- "v*" # Push events to matching v*, i.e. v3.6.2, v4.0.0


jobs:
build:
strategy:
fail-fast: false
matrix:
scenario-name: [ 'basics_demo', 'citibike_demo', 'citibike_demo_jinja']
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}
if: ${{ github.event.label.name == 'ci-run-tests' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
env:
SNOWFLAKE_PASSWORD: ${{ secrets.SCHEMACHANGE_SNOWFLAKE_PASSWORD }}
SNOWFLAKE_USER: ${{ secrets.SCHEMACHANGE_SNOWFLAKE_USER }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SCHEMACHANGE_SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_DATABASE: SCHEMACHANGE_DEMO
SNOWFLAKE_WAREHOUSE: SCHEMACHANGE_DEMO_WH
SNOWFLAKE_ROLE: '"SCHEMACHANGE_DEMO-DEPLOY"'
MY_TARGET_SCHEMA: ${{ matrix.scenario-name }}_${{ github.run_number }}_${{ strategy.job-index }}
SCENARIO_NAME: ${{ matrix.scenario-name }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# The next few steps (Install dependencies, Lint with Flake8, Test with Pytest) will install Python dependencies,
# run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install -e .[dev]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
id: pytest
run: |
pytest
# Testing Schemachange demo projects
- name: Test Schemachange on ${{ matrix.os }} targeting ${{ env.SNOWFLAKE_DATABASE }}.${{ env.MY_TARGET_SCHEMA }} schema
run: |
echo "::group::Setting up ${MY_TARGET_SCHEMA}"
schemachange deploy --config-folder ./demo/setup/${SCENARIO_NAME}
echo "::endgroup::"
echo "::group::Testing Rendering to ${MY_TARGET_SCHEMA}"
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/A__render.sql
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/R__render.sql
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/V1.0.0__render.sql
echo "::endgroup::"
echo "::group::Testing Deployment using ${MY_TARGET_SCHEMA}"
set +e
schemachange deploy --config-folder ./demo/${SCENARIO_NAME}
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "Deployment Completed!"
else
echo "Deployment Failed. Proceeding to Teardown."
fi
echo "::endgroup::"
set -e
echo "::group::Tearing down up ${MY_TARGET_SCHEMA}"
schemachange deploy --config-folder ./demo/teardown/${SCENARIO_NAME}
echo "::endgroup::"
if [ $RESULT -ne 0 ]; then
exit 1
fi
32 changes: 0 additions & 32 deletions .github/workflows/pytest.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
43 changes: 37 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,43 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/asottile/setup-cfg-fmt
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: name-tests-test
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.4.0
hooks:
- id: setup-cfg-fmt
- id: setup-cfg-fmt
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.4
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: git@github.com:GitGuardian/ggshield.git
rev: v1.28.0
hooks:
- id: ggshield
language_version: python3
stages: [commit]
- repo: https://github.com/PyCQA/flake8
rev: '6.0.0'
hooks:
- id: flake8
args: [ '--max-line-length=88', '--extend-ignore=E203,E501,W503,E266', '--exclude=.venv' ]
20 changes: 16 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@ All notable changes to this project will be documented in this file.

*The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).*

## [3.6.2] - 2024-06-10
## [3.7.0] - 2024-07-31
### Added
- Improved unit test coverage
- Added Session ID as part of the initial connection successful message to be visible in the logs
### Changed
- Aligning with snowflake [identifier requirements](https://docs.snowflake.com/en/sql-reference/identifiers-syntax) in the configuration settings
- Fixed the bug with `Missing default warehouse`
- Fixed Demo examples resulting from change in public data set location
- Removed pandas library dependency to improve schemachange install footprint
- Updated Github Actions Workflow to check PRs and Merges does not break the demo examples.
- Updated Docs related to latest Demo content included in schemachange

## [3.6.2] - 2024-07-10
### Changed
- Updated pandas version dependency
- Pinned NumPy version dependency
Expand Down Expand Up @@ -93,12 +105,12 @@ All notable changes to this project will be documented in this file.
## [3.2.2] - 2021-11-06
### Added
- Restored CLI tests, hopefully less fragile now.
- Added Github CI workflow to run unit tests and a basic execution test.
- Added GitHub CI workflow to run unit tests and a basic execution test.
- `schemachange.cli.main` is now defined as `def main(argv: List[str]=sys.argv)`, to allow consumers to pass a list of arguments easily.

## [3.2.1] - 2021-11-04
### Fixed
- Jinja Template Engine was not recognising scripts in subfolders on windows machines. Jinja was expecting the paths to follow a unix style ie SQL/V2.0.0__ADHOC_SCRIPT.sql but on windows machines this was being passed through as SQL\V2.0.0__ADHOC_SCRIPT.sql.
- Jinja Template Engine was not recognising scripts in subfolders on Windows machines. Jinja was expecting the paths to follow a unix style ie SQL/V2.0.0__ADHOC_SCRIPT.sql but on Windows machines this was being passed through as SQL\V2.0.0__ADHOC_SCRIPT.sql.

### Removed
- Removed fragile unit tests in test_main.py.
Expand Down Expand Up @@ -232,7 +244,7 @@ All notable changes to this project will be documented in this file.
- Add the Snowflake account name to the script output to provide more log context

### Removed
- Removed the deprecated `--snowflake-region` parameter. Instead use the `-a` or `--snowflake-account` account parameter. See [Usage Notes for the account Parameter (for the connect Method)](https://docs.snowflake.com/en/user-guide/python-connector-api.html#label-account-format-info) for more details on how to structure the account name.
- Removed the deprecated `--snowflake-region` parameter. Instead, use the `-a` or `--snowflake-account` account parameter. See [Usage Notes for the account Parameter (for the connect Method)](https://docs.snowflake.com/en/user-guide/python-connector-api.html#label-account-format-info) for more details on how to structure the account name.


## [2.1.0] - 2020-05-26
Expand Down
Loading