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

Commit 74bf787

Browse files
committed
chore: remove code formatting for noxfile.py
1 parent f93a0eb commit 74bf787

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

gapic/templates/noxfile.py.j2

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ BLACK_VERSION = "black[jupyter]==23.7.0"
1616
ISORT_VERSION = "isort==5.11.0"
1717

1818
{% if api.naming.module_namespace %}
19+
FORMAT_PATHS = ["docs", "{{ api.naming.module_namespace[0] }}", "tests", "setup.py"]
1920
LINT_PATHS = ["docs", "{{ api.naming.module_namespace[0] }}", "tests", "noxfile.py", "setup.py"]
2021
{% else %}
22+
FORMAT_PATHS = ["docs", "{{ api.naming.module_namespace[0] }}", "tests", "setup.py"]
2123
LINT_PATHS = ["docs", "{{ api.naming.versioned_module_name }}", "tests", "noxfile.py", "setup.py"]
2224
{% endif %}
2325

@@ -167,7 +169,7 @@ def blacken(session):
167169
session.install(BLACK_VERSION)
168170
session.run(
169171
"black",
170-
*LINT_PATHS,
172+
*FORMAT_PATHS,
171173
)
172174

173175

@@ -183,11 +185,11 @@ def format(session):
183185
session.run(
184186
"isort",
185187
"--fss",
186-
*LINT_PATHS,
188+
*FORMAT_PATHS,
187189
)
188190
session.run(
189191
"black",
190-
*LINT_PATHS,
192+
*FORMAT_PATHS,
191193
)
192194

193195

0 commit comments

Comments
 (0)