From 0a02024726b54d68d359c46d1db6e60529733b5a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 11 Apr 2021 05:30:48 -0700 Subject: [PATCH] chore: add constraints file check for python samples (#62) 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-login/.github/header-checker-lint.yml | 2 +- packages/google-cloud-os-login/renovate.json | 5 ++++- packages/google-cloud-os-login/synth.metadata | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/google-cloud-os-login/.github/header-checker-lint.yml b/packages/google-cloud-os-login/.github/header-checker-lint.yml index fc281c05bd55..6fe78aa7987a 100644 --- a/packages/google-cloud-os-login/.github/header-checker-lint.yml +++ b/packages/google-cloud-os-login/.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-login/renovate.json b/packages/google-cloud-os-login/renovate.json index f08bc22c9a55..c04895563e69 100644 --- a/packages/google-cloud-os-login/renovate.json +++ b/packages/google-cloud-os-login/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-login/synth.metadata b/packages/google-cloud-os-login/synth.metadata index c89104512098..337c8231205d 100644 --- a/packages/google-cloud-os-login/synth.metadata +++ b/packages/google-cloud-os-login/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-oslogin.git", - "sha": "ab9a3d5d62e8b1b32188aa0075dd7f73d64ff570" + "sha": "39f8056e2fb10f5fe2298ad3313b6cc5d83ed1ed" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5b5bf6d519b2d658d9f2e483d9f6f3d0ba8ee6bc" + "sha": "0a071b3460344886297a304253bf924aa68ddb7e" } } ],