Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 9e8c934

Browse files
committed
chore: update generated noxfile.py to cater for grafeas
1 parent 575134f commit 9e8c934

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gapic/templates/noxfile.py.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ def lint(session):
143143
*LINT_PATHS,
144144
)
145145

146-
session.run("flake8", "google", "tests")
146+
{% if api.naming.module_namespace %}
147+
session.run("flake8", "{{ api.naming.module_namespace[0] }}", "tests")
148+
{% else %}
149+
session.run("flake8", "{{ api.naming.versioned_module_name }}, "tests")
150+
{% endif %}
147151

148152

149153
@nox.session(python=DEFAULT_PYTHON_VERSION)

0 commit comments

Comments
 (0)