From 5a5062ee5c04ee8a7a78d62a9474a7f6660f1e5f Mon Sep 17 00:00:00 2001 From: jackwotherspoon Date: Fri, 22 Jul 2022 17:59:49 +0000 Subject: [PATCH 1/2] chore: add header check --- .github/header-checker-lint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/header-checker-lint.yml diff --git a/.github/header-checker-lint.yml b/.github/header-checker-lint.yml new file mode 100644 index 000000000..79fc3acf2 --- /dev/null +++ b/.github/header-checker-lint.yml @@ -0,0 +1,23 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +allowedCopyrightHolders: + - 'Google LLC' +allowedLicenses: + - 'Apache-2.0' +sourceFileExtensions: + - 'py' + - 'yaml' + - 'yml' + - 'sh' From 8f34eb50e90ee3133ee4458dc8103089ab8696ce Mon Sep 17 00:00:00 2001 From: jackwotherspoon Date: Fri, 22 Jul 2022 18:06:30 +0000 Subject: [PATCH 2/2] chore: add missing headers --- google/cloud/sql/connector/pg8000.py | 15 +++++++++++++++ google/cloud/sql/connector/pymysql.py | 15 +++++++++++++++ google/cloud/sql/connector/pytds.py | 15 +++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/google/cloud/sql/connector/pg8000.py b/google/cloud/sql/connector/pg8000.py index 776ecc11b..65cd5c1b8 100644 --- a/google/cloud/sql/connector/pg8000.py +++ b/google/cloud/sql/connector/pg8000.py @@ -1,3 +1,18 @@ +""" +Copyright 2022 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" import ssl from typing import Any, TYPE_CHECKING diff --git a/google/cloud/sql/connector/pymysql.py b/google/cloud/sql/connector/pymysql.py index 1c426f67d..c8c6c95b8 100644 --- a/google/cloud/sql/connector/pymysql.py +++ b/google/cloud/sql/connector/pymysql.py @@ -1,3 +1,18 @@ +""" +Copyright 2022 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" import socket import ssl from typing import Any, TYPE_CHECKING diff --git a/google/cloud/sql/connector/pytds.py b/google/cloud/sql/connector/pytds.py index e3ef36301..b2dfc6857 100644 --- a/google/cloud/sql/connector/pytds.py +++ b/google/cloud/sql/connector/pytds.py @@ -1,3 +1,18 @@ +""" +Copyright 2022 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" import ssl import socket import platform