From f0aadc3e68b2868e99625760dc298a4ea0e12df9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 11 Apr 2021 05:31:36 -0700 Subject: [PATCH] chore: add constraints file check for python samples (#59) 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 --- packages/google-cloud-redis/.github/header-checker-lint.yml | 2 +- packages/google-cloud-redis/renovate.json | 5 ++++- packages/google-cloud-redis/synth.metadata | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/google-cloud-redis/.github/header-checker-lint.yml b/packages/google-cloud-redis/.github/header-checker-lint.yml index fc281c05bd55..6fe78aa7987a 100644 --- a/packages/google-cloud-redis/.github/header-checker-lint.yml +++ b/packages/google-cloud-redis/.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-redis/renovate.json b/packages/google-cloud-redis/renovate.json index f08bc22c9a55..c04895563e69 100644 --- a/packages/google-cloud-redis/renovate.json +++ b/packages/google-cloud-redis/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-redis/synth.metadata b/packages/google-cloud-redis/synth.metadata index cd5c99e1c22a..a48e4778ddff 100644 --- a/packages/google-cloud-redis/synth.metadata +++ b/packages/google-cloud-redis/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-redis.git", - "sha": "26e1d52129c82d6de9b9d16ae6ef40e3435ac9d8" + "sha": "4a77ccfaf710ab5e41ff4190322af525bcbbbdb3" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5b5bf6d519b2d658d9f2e483d9f6f3d0ba8ee6bc" + "sha": "0a071b3460344886297a304253bf924aa68ddb7e" } } ],