From 5b188eeb4a99bbda84b93bdba5e3d8d1493e5043 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 11 Apr 2021 04:10:07 -0700 Subject: [PATCH] chore: add constraints file check for python samples (#58) This is the sibling PR to https://github.com/GoogleCloudPlatform/python-docs-samples/pull/5611 and this is the issue opened for it https://github.com/GoogleCloudPlatform/python-docs-samples/issues/5549 --- .../google-cloud-os-config/.github/header-checker-lint.yml | 2 +- packages/google-cloud-os-config/renovate.json | 5 ++++- packages/google-cloud-os-config/synth.metadata | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/google-cloud-os-config/.github/header-checker-lint.yml b/packages/google-cloud-os-config/.github/header-checker-lint.yml index fc281c05bd55..6fe78aa7987a 100644 --- a/packages/google-cloud-os-config/.github/header-checker-lint.yml +++ b/packages/google-cloud-os-config/.github/header-checker-lint.yml @@ -1,6 +1,6 @@ {"allowedCopyrightHolders": ["Google LLC"], "allowedLicenses": ["Apache-2.0", "MIT", "BSD-3"], - "ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt"], + "ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt", "**/__init__.py", "samples/**/constraints.txt", "samples/**/constraints-test.txt"], "sourceFileExtensions": [ "ts", "js", diff --git a/packages/google-cloud-os-config/renovate.json b/packages/google-cloud-os-config/renovate.json index f08bc22c9a55..c04895563e69 100644 --- a/packages/google-cloud-os-config/renovate.json +++ b/packages/google-cloud-os-config/renovate.json @@ -2,5 +2,8 @@ "extends": [ "config:base", ":preserveSemverRanges" ], - "ignorePaths": [".pre-commit-config.yaml"] + "ignorePaths": [".pre-commit-config.yaml"], + "pip_requirements": { + "fileMatch": ["requirements-test.txt", "samples/[\\S/]*constraints.txt", "samples/[\\S/]*constraints-test.txt"] + } } diff --git a/packages/google-cloud-os-config/synth.metadata b/packages/google-cloud-os-config/synth.metadata index 44fb798fdaa4..91bf951f6c78 100644 --- a/packages/google-cloud-os-config/synth.metadata +++ b/packages/google-cloud-os-config/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-os-config.git", - "sha": "d5aece996ff225dc747e7c59978576bfcb79a3d1" + "sha": "9dd12f92d7fc0613f1ca7da62210b2adb774dbe7" } }, { @@ -19,14 +19,14 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5b5bf6d519b2d658d9f2e483d9f6f3d0ba8ee6bc" + "sha": "0a071b3460344886297a304253bf924aa68ddb7e" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5b5bf6d519b2d658d9f2e483d9f6f3d0ba8ee6bc" + "sha": "0a071b3460344886297a304253bf924aa68ddb7e" } } ],