From 48a30858cde9d7f60140e99e79e70f42fdd0959d Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 15 Jul 2021 14:08:18 -0700 Subject: [PATCH] Restore template generator and fix formatting. (#4768) --- .github/workflows/gradle.yml | 4 ++-- .../integration_tests/acceptance.py | 2 -- .../connectors/source-scaffold-source-http/main.py | 2 -- .../connectors/source-scaffold-source-http/setup.py | 2 -- .../source_scaffold_source_http/source.py | 2 -- .../source-scaffold-source-http/unit_tests/unit_test.py | 2 -- .../integration_tests/acceptance.py | 2 -- .../connectors/source-scaffold-source-python/main.py | 2 -- .../connectors/source-scaffold-source-python/setup.py | 2 -- .../source_scaffold_source_python/source.py | 2 -- .../source-scaffold-source-python/unit_tests/unit_test.py | 2 -- 11 files changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 14de53889c2b..9fc14e19c82e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -86,8 +86,8 @@ jobs: - name: Install Pyenv run: python3 -m pip install virtualenv==16.7.9 --user -# - name: Generate Template scaffold -# run: ./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates --scan + - name: Generate Template scaffold + run: ./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates --scan - name: Format run: SUB_BUILD=CONNECTORS_BASE ./gradlew format --scan --info --stacktrace diff --git a/airbyte-integrations/connectors/source-scaffold-source-http/integration_tests/acceptance.py b/airbyte-integrations/connectors/source-scaffold-source-http/integration_tests/acceptance.py index eeb4a2d3e02e..df2783d1750f 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-http/integration_tests/acceptance.py +++ b/airbyte-integrations/connectors/source-scaffold-source-http/integration_tests/acceptance.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# import pytest diff --git a/airbyte-integrations/connectors/source-scaffold-source-http/main.py b/airbyte-integrations/connectors/source-scaffold-source-http/main.py index 5d7cec274c6e..6e752104685c 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-http/main.py +++ b/airbyte-integrations/connectors/source-scaffold-source-http/main.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# import sys diff --git a/airbyte-integrations/connectors/source-scaffold-source-http/setup.py b/airbyte-integrations/connectors/source-scaffold-source-http/setup.py index 5e6bc88d3b56..3041c1fd0ea1 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-http/setup.py +++ b/airbyte-integrations/connectors/source-scaffold-source-http/setup.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# from setuptools import find_packages, setup diff --git a/airbyte-integrations/connectors/source-scaffold-source-http/source_scaffold_source_http/source.py b/airbyte-integrations/connectors/source-scaffold-source-http/source_scaffold_source_http/source.py index 1960c953766b..240caca78c33 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-http/source_scaffold_source_http/source.py +++ b/airbyte-integrations/connectors/source-scaffold-source-http/source_scaffold_source_http/source.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# from abc import ABC diff --git a/airbyte-integrations/connectors/source-scaffold-source-http/unit_tests/unit_test.py b/airbyte-integrations/connectors/source-scaffold-source-http/unit_tests/unit_test.py index b8a8150b507f..f03f99f7c46e 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-http/unit_tests/unit_test.py +++ b/airbyte-integrations/connectors/source-scaffold-source-http/unit_tests/unit_test.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# def test_example_method(): diff --git a/airbyte-integrations/connectors/source-scaffold-source-python/integration_tests/acceptance.py b/airbyte-integrations/connectors/source-scaffold-source-python/integration_tests/acceptance.py index 52accc9d8498..545776693290 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-python/integration_tests/acceptance.py +++ b/airbyte-integrations/connectors/source-scaffold-source-python/integration_tests/acceptance.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# import pytest diff --git a/airbyte-integrations/connectors/source-scaffold-source-python/main.py b/airbyte-integrations/connectors/source-scaffold-source-python/main.py index 750c40029bae..66dc58763bd6 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-python/main.py +++ b/airbyte-integrations/connectors/source-scaffold-source-python/main.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# import sys diff --git a/airbyte-integrations/connectors/source-scaffold-source-python/setup.py b/airbyte-integrations/connectors/source-scaffold-source-python/setup.py index 6e1fa0780181..439ca2348f01 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-python/setup.py +++ b/airbyte-integrations/connectors/source-scaffold-source-python/setup.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# from setuptools import find_packages, setup diff --git a/airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py b/airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py index 89772c429035..37e4a1783cf1 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py +++ b/airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# import json diff --git a/airbyte-integrations/connectors/source-scaffold-source-python/unit_tests/unit_test.py b/airbyte-integrations/connectors/source-scaffold-source-python/unit_tests/unit_test.py index b8a8150b507f..f03f99f7c46e 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-python/unit_tests/unit_test.py +++ b/airbyte-integrations/connectors/source-scaffold-source-python/unit_tests/unit_test.py @@ -1,4 +1,3 @@ -# # MIT License # # Copyright (c) 2020 Airbyte @@ -20,7 +19,6 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# def test_example_method():