From d7540e75b81c713829d8290d1ff71b36460c2dd1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 11 Apr 2021 04:11:28 -0700 Subject: [PATCH] chore: add constraints file check for python samples (#53) 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-monitoring-dashboards/renovate.json | 5 ++++- packages/google-cloud-monitoring-dashboards/synth.metadata | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/google-cloud-monitoring-dashboards/.github/header-checker-lint.yml b/packages/google-cloud-monitoring-dashboards/.github/header-checker-lint.yml index fc281c05bd55..6fe78aa7987a 100644 --- a/packages/google-cloud-monitoring-dashboards/.github/header-checker-lint.yml +++ b/packages/google-cloud-monitoring-dashboards/.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-monitoring-dashboards/renovate.json b/packages/google-cloud-monitoring-dashboards/renovate.json index f08bc22c9a55..c04895563e69 100644 --- a/packages/google-cloud-monitoring-dashboards/renovate.json +++ b/packages/google-cloud-monitoring-dashboards/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-monitoring-dashboards/synth.metadata b/packages/google-cloud-monitoring-dashboards/synth.metadata index d6aaf47a3533..02c26b5ab40c 100644 --- a/packages/google-cloud-monitoring-dashboards/synth.metadata +++ b/packages/google-cloud-monitoring-dashboards/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-monitoring-dashboards.git", - "sha": "7eb87bd6df91bdbf7ad84fbc8f5354827d7aa307" + "sha": "72a17dff4b030d34db6e0e31d4d5d69fe6f10ec4" } }, { @@ -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" } } ],