From 76749a9a979aa47cb9a995a62c85549a4e20189c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Swe=C3=B1a=20=28Swast=29?= Date: Fri, 14 Feb 2025 16:42:14 -0600 Subject: [PATCH 1/4] chore: update default Python version to 3.12 for tests and formatting --- owlbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/owlbot.py b/owlbot.py index bbbc590..05dde1a 100644 --- a/owlbot.py +++ b/owlbot.py @@ -41,6 +41,7 @@ "3.13": extras_bf, } templated_files = common.py_library( + default_python_version="3.12", unit_test_python_versions=["3.7", "3.8", "3.9", "3.11", "3.12", "3.13"], system_test_python_versions=["3.8", "3.11", "3.12", "3.13"], cov_level=100, From 9b6c6fe53ab9bfbf264495a5ddf41dd154e27b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Swe=C3=B1a=20=28Swast=29?= Date: Fri, 14 Feb 2025 16:45:11 -0600 Subject: [PATCH 2/4] Update owlbot.py --- owlbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owlbot.py b/owlbot.py index 05dde1a..63f769c 100644 --- a/owlbot.py +++ b/owlbot.py @@ -41,7 +41,7 @@ "3.13": extras_bf, } templated_files = common.py_library( - default_python_version="3.12", + default_python_version="3.11", unit_test_python_versions=["3.7", "3.8", "3.9", "3.11", "3.12", "3.13"], system_test_python_versions=["3.8", "3.11", "3.12", "3.13"], cov_level=100, From 0234446582762155b129093f3e08cc76dac9995f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Swe=C3=B1a=20=28Swast=29?= Date: Fri, 14 Feb 2025 16:48:59 -0600 Subject: [PATCH 3/4] Update owlbot.py --- owlbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owlbot.py b/owlbot.py index 63f769c..39bacbe 100644 --- a/owlbot.py +++ b/owlbot.py @@ -41,7 +41,7 @@ "3.13": extras_bf, } templated_files = common.py_library( - default_python_version="3.11", + default_python_version="3.9", unit_test_python_versions=["3.7", "3.8", "3.9", "3.11", "3.12", "3.13"], system_test_python_versions=["3.8", "3.11", "3.12", "3.13"], cov_level=100, From 746844020bcf941b1da272b20b44f0485dccaf49 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Oct 2025 16:08:09 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- samples/snippets/noxfile.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/samples/snippets/noxfile.py b/samples/snippets/noxfile.py index c9a3d1e..a169b5b 100644 --- a/samples/snippets/noxfile.py +++ b/samples/snippets/noxfile.py @@ -160,7 +160,6 @@ def blacken(session: nox.sessions.Session) -> None: # format = isort + black # - @nox.session def format(session: nox.sessions.Session) -> None: """ @@ -188,9 +187,7 @@ def _session_tests( session: nox.sessions.Session, post_install: Callable = None ) -> None: # check for presence of tests - test_list = glob.glob("**/*_test.py", recursive=True) + glob.glob( - "**/test_*.py", recursive=True - ) + test_list = glob.glob("**/*_test.py", recursive=True) + glob.glob("**/test_*.py", recursive=True) test_list.extend(glob.glob("**/tests", recursive=True)) if len(test_list) == 0: @@ -212,7 +209,9 @@ def _session_tests( if os.path.exists("requirements-test.txt"): if os.path.exists("constraints-test.txt"): - session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") + session.install( + "-r", "requirements-test.txt", "-c", "constraints-test.txt" + ) else: session.install("-r", "requirements-test.txt") with open("requirements-test.txt") as rtfile: @@ -225,9 +224,9 @@ def _session_tests( post_install(session) if "pytest-parallel" in packages: - concurrent_args.extend(["--workers", "auto", "--tests-per-worker", "auto"]) + concurrent_args.extend(['--workers', 'auto', '--tests-per-worker', 'auto']) elif "pytest-xdist" in packages: - concurrent_args.extend(["-n", "auto"]) + concurrent_args.extend(['-n', 'auto']) session.run( "pytest", @@ -257,7 +256,7 @@ def py(session: nox.sessions.Session) -> None: def _get_repo_root() -> Optional[str]: - """Returns the root folder of the project.""" + """ Returns the root folder of the project. """ # Get root of this repository. Assume we don't have directories nested deeper than 10 items. p = Path(os.getcwd()) for i in range(10):