From 8380179b3bb3a8685085295d79e20cea0e1f626f Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 10 Jan 2025 14:26:57 -0500 Subject: [PATCH] chore(python_mono_repo): update template to cater for grpc-google-iam-v1 (#2050) chore(python_mono_repo): update template to cater for --- .../gcp/templates/python_mono_repo_library/noxfile.py.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synthtool/gcp/templates/python_mono_repo_library/noxfile.py.j2 b/synthtool/gcp/templates/python_mono_repo_library/noxfile.py.j2 index faf989a2d..f9b2ad8c6 100644 --- a/synthtool/gcp/templates/python_mono_repo_library/noxfile.py.j2 +++ b/synthtool/gcp/templates/python_mono_repo_library/noxfile.py.j2 @@ -28,7 +28,7 @@ import nox BLACK_VERSION = "black[jupyter]==23.7.0" ISORT_VERSION = "isort==5.11.0" -{% if metadata['repo']['distribution_name'].startswith('google') %} +{% if 'google' in metadata['repo']['distribution_name'] %} LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] {% else %} LINT_PATHS = ["docs", "{{ metadata['repo']['distribution_name'] }}", "tests", "noxfile.py", "setup.py"] @@ -160,7 +160,7 @@ def lint(session): "--check", *LINT_PATHS, ) - {% if metadata['repo']['distribution_name'].startswith('google') %} + {% if 'google' in metadata['repo']['distribution_name'] %} session.run("flake8", "google", "tests") {% else %} session.run("flake8", "{{ metadata['repo']['distribution_name'] }}", "tests")