Skip to content

Commit 1d9dbe7

Browse files
committed
updates some configs in owlbot, noxfile, and ymls to ensure that the correct version of python is used
1 parent 9ebac00 commit 1d9dbe7

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.13"
15+
python-version: "3.10"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Python
2929
uses: actions/setup-python@v5
3030
with:
31-
python-version: "3.13"
31+
python-version: "3.10"
3232
- name: Install nox
3333
run: |
3434
python -m pip install --upgrade setuptools pip wheel

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.13"
15+
python-version: "3.10"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
LINT_PATHS = ["docs", "pandas_gbq", "tests", "noxfile.py", "setup.py"]
3434

3535
DEFAULT_PYTHON_VERSION = "3.10"
36-
36+
LINT_PYTHON_VERSION = "3.10"
3737

3838
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
3939
UNIT_TEST_STANDARD_DEPENDENCIES = [
@@ -109,7 +109,7 @@ def wrapper(*args, **kwargs):
109109
nox.options.error_on_missing_interpreters = True
110110

111111

112-
@nox.session(python=DEFAULT_PYTHON_VERSION)
112+
@nox.session(python=LINT_PYTHON_VERSION)
113113
@_calculate_duration
114114
def lint(session):
115115
"""Run linters.
@@ -158,7 +158,7 @@ def format(session):
158158
)
159159

160160

161-
@nox.session(python=DEFAULT_PYTHON_VERSION)
161+
@nox.session(python=LINT_PYTHON_VERSION)
162162
@_calculate_duration
163163
def lint_setup_py(session):
164164
"""Verify that setup.py is valid (including RST check)."""

owlbot.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,16 @@
5757
"docs/multiprocessing.rst",
5858
"noxfile.py",
5959
"README.rst",
60-
".github/workflows/docs.yml",
60+
".github/workflows/docs.yml", # to avoid overwriting python version
61+
".github/workflows/lint.yml", # to avoid overwriting python version
6162
".github/sync-repo-settings.yaml",
6263
# exclude this file as we have an alternate prerelease.cfg
6364
".kokoro/presubmit/prerelease-deps.cfg",
6465
".kokoro/presubmit/presubmit.cfg",
66+
"renovate.json", # to avoid overwriting the ignorePaths list additions:
67+
# ".github/workflows/docs.yml AND lint.yml" specifically
68+
# the version of python referenced in each of those files.
69+
# Currently renovate bot wants to change 3.10 to 3.13.
6570
],
6671
)
6772

renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
":preserveSemverRanges",
66
":disableDependencyDashboard"
77
],
8-
"ignorePaths": [".pre-commit-config.yaml", ".kokoro/requirements.txt", "setup.py", ".github/workflows/unittest.yml"],
8+
"ignorePaths": [".pre-commit-config.yaml", ".kokoro/requirements.txt", "setup.py", ".github/workflows/unittest.yml", ".github/workflows/docs.yml", ".github/workflows/lint.yml"],
99
"pip_requirements": {
1010
"fileMatch": ["requirements-test.txt", "samples/[\\S/]*constraints.txt", "samples/[\\S/]*constraints-test.txt"]
1111
}

0 commit comments

Comments
 (0)