From 0d31fef4f89a88ebdab972c6b02467e5ec650304 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 11 Apr 2021 05:35:19 -0700 Subject: [PATCH] chore: add constraints file check for python samples (#25) 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 --- .../.github/header-checker-lint.yml | 2 +- packages/google-cloud-assured-workloads/renovate.json | 5 ++++- packages/google-cloud-assured-workloads/synth.metadata | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/google-cloud-assured-workloads/.github/header-checker-lint.yml b/packages/google-cloud-assured-workloads/.github/header-checker-lint.yml index fc281c05bd55..6fe78aa7987a 100644 --- a/packages/google-cloud-assured-workloads/.github/header-checker-lint.yml +++ b/packages/google-cloud-assured-workloads/.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-assured-workloads/renovate.json b/packages/google-cloud-assured-workloads/renovate.json index f08bc22c9a55..c04895563e69 100644 --- a/packages/google-cloud-assured-workloads/renovate.json +++ b/packages/google-cloud-assured-workloads/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-assured-workloads/synth.metadata b/packages/google-cloud-assured-workloads/synth.metadata index 46d25ade398a..0bea00015c7e 100644 --- a/packages/google-cloud-assured-workloads/synth.metadata +++ b/packages/google-cloud-assured-workloads/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-assured-workloads.git", - "sha": "8152c436a649eb47b8bbc24ad82d113808970c0b" + "sha": "208c4170fd84e4749296ed21549262d8d2e6642a" } }, { @@ -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" } } ],