From 647beb99368b47710b366419e09dc3340fac1ad9 Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Wed, 29 Mar 2023 09:02:15 -0500 Subject: [PATCH] chore: Update python templates to resolve lint issues (#1775) * fix: Update conf.py.j2 template to resolve lint issues with 3rd party imports * Update noxfile.py.j2 formatting to follow black --------- Co-authored-by: Anthonios Partheniou --- synthtool/gcp/templates/python_library/docs/conf.py.j2 | 2 +- synthtool/gcp/templates/python_library/noxfile.py.j2 | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/synthtool/gcp/templates/python_library/docs/conf.py.j2 b/synthtool/gcp/templates/python_library/docs/conf.py.j2 index cd6e76a4b..0b3eace27 100644 --- a/synthtool/gcp/templates/python_library/docs/conf.py.j2 +++ b/synthtool/gcp/templates/python_library/docs/conf.py.j2 @@ -370,7 +370,7 @@ intersphinx_mapping = { "protobuf": ("https://googleapis.dev/python/protobuf/latest/", None), {%- if intersphinx_dependencies %} {% for name, url in intersphinx_dependencies.items() %} - "{{ name }}": ("{{ url }}", None), + "{{ name }}": ("{{ url }}", None), {% endfor %} {% endif %} } diff --git a/synthtool/gcp/templates/python_library/noxfile.py.j2 b/synthtool/gcp/templates/python_library/noxfile.py.j2 index 6189ff133..86ebce926 100644 --- a/synthtool/gcp/templates/python_library/noxfile.py.j2 +++ b/synthtool/gcp/templates/python_library/noxfile.py.j2 @@ -413,8 +413,7 @@ def prerelease_deps(session): unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES session.install(*unit_deps_all) system_deps_all = ( - SYSTEM_TEST_STANDARD_DEPENDENCIES - + SYSTEM_TEST_EXTERNAL_DEPENDENCIES + SYSTEM_TEST_STANDARD_DEPENDENCIES + SYSTEM_TEST_EXTERNAL_DEPENDENCIES ) session.install(*system_deps_all)