diff --git a/.github/.Owlbot.lock.yaml b/.github/.Owlbot.lock.yaml deleted file mode 100644 index 813281ac..00000000 --- a/.github/.Owlbot.lock.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2024 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 -# -# http://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. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:230f7fe8a0d2ed81a519cfc15c6bb11c5b46b9fb449b8b1219b3771bcb520ad2 -# created: 2023-12-09T15:16:25.430769578Z diff --git a/.github/.Owlbot.yaml b/.github/.Owlbot.yaml deleted file mode 100644 index ee842a04..00000000 --- a/.github/.Owlbot.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 2024 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 -# -# http://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. - -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - -begin-after-commit-hash: 70f7f0525414fe4dfeb2fc2e81546b073f83a621 diff --git a/.github/auto-approve.yml b/.github/auto-approve.yml deleted file mode 100644 index 311ebbb8..00000000 --- a/.github/auto-approve.yml +++ /dev/null @@ -1,3 +0,0 @@ -# https://github.com/googleapis/repo-automation-bots/tree/main/packages/auto-approve -processes: - - "OwlBotTemplateChanges" diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 13eb2095..bc2e9017 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -26,6 +26,10 @@ branchProtectionRules: isAdminEnforced: true requiredStatusCheckContexts: - "cla/google" + - "lint" + - "integration-test-pr (langchain-spanner-testing)" + - "conventionalcommits.org" + - "header-check" # - Add required status checks like presubmit tests requiredApprovingReviewCount: 1 requiresCodeOwnerReviews: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2057dff1..7358c119 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -43,7 +43,7 @@ jobs: python-version: "3.11" - name: Install requirements - run: pip install .[test] + run: pip install -e .[test] - name: Run linters run: | @@ -51,4 +51,4 @@ jobs: isort --check . - name: Run type-check - run: mypy . + run: mypy --install-types --non-interactive . diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index e0a66705..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 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. - -# Generated by synthtool. DO NOT EDIT! -include README.rst LICENSE -recursive-include google *.json *.proto py.typed -recursive-include tests * -global-exclude *.py[co] -global-exclude __pycache__ - -# Exclude scripts for samples readmegen -prune scripts/readme-gen diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index 7fb25735..00000000 --- a/owlbot.py +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2024 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 -# -# http://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. - -"""This script is used to synthesize generated parts of this library.""" - -import re - -import synthtool as s -from synthtool import gcp - -common = gcp.CommonTemplates() -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library() - -# Copy templates for releases -s.move( - templated_files / ".github", - excludes=[ - "CODEOWNERS", - "auto-label.yaml", - "snippet-bot.yml", - "workflows/*", - ], -) -s.move(templated_files / "MANIFEST.in") -s.move(templated_files / "setup.cfg") -s.move(templated_files / ".gitignore") diff --git a/pyproject.toml b/pyproject.toml index d4992066..d1ffc31f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,24 +18,23 @@ Changelog = "https://github.com/googleapis/langchain-google-spanner-python/blob/ [project.optional-dependencies] test = [ - "black==23.12.0", + "black[jupyter]==23.12.0", "isort==5.13.2", "mypy==1.7.1", - "pytest-asyncio==0.23.0", "pytest==7.4.4", - "types-google-cloud-ndb==2.2.0.20240106" + "pytest-asyncio==0.23.0", ] [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" +[tool.black] +target-version = ['py38'] + [tool.isort] profile = "black" [tool.mypy] -python_version = "3.11" +python_version = 3.8 warn_unused_configs = true -exclude = [ - "owlbot.py" -] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 05235008..00000000 --- a/setup.cfg +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 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. - -# Generated by synthtool. DO NOT EDIT! -[bdist_wheel] -universal = 1