Skip to content

Commit

Permalink
chore(python_mono_repo): update template to cater for grpc-google-iam…
Browse files Browse the repository at this point in the history
…-v1 (#2050)

chore(python_mono_repo): update template to cater for
  • Loading branch information
parthea authored Jan 10, 2025
1 parent 106d292 commit 8380179
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 8380179

Please sign in to comment.