Skip to content

Commit 83143b8

Browse files
chalmerlowerenovate-botgcf-owl-bot[bot]
authored
test: updates python versions and sets owlbot excludes (#367)
* chore(deps): update all dependencies * updates to prevent changes to docs and lint.ymls * updates lint python version to 3.10 * remove comments, update lint python version * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Mend Renovate <[email protected]> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 9410076 commit 83143b8

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.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.8"
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 & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
LINT_PATHS = ["docs", "db_dtypes", "tests", "noxfile.py", "setup.py"]
3434

3535
DEFAULT_PYTHON_VERSION = "3.9"
36+
LINT_PYTHON_VERSION = "3.10"
3637

3738
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
3839
"3.9",
@@ -86,10 +87,7 @@
8687
nox.options.error_on_missing_interpreters = True
8788

8889

89-
# TODO: the linting process still uses python 3.8.
90-
# As soon as that gets upgraded, we should be able to revert this session
91-
# to using the DEFAULT_PYTHON_VERSION.
92-
@nox.session(python="3.8")
90+
@nox.session(python=LINT_PYTHON_VERSION)
9391
def lint(session):
9492
"""Run linters.
9593
@@ -142,10 +140,7 @@ def format(session):
142140
)
143141

144142

145-
# TODO: the linting process still uses python 3.8.
146-
# As soon as that gets upgraded, we should be able to revert this session
147-
# to using the DEFAULT_PYTHON_VERSION.
148-
@nox.session(python="3.8")
143+
@nox.session(python=LINT_PYTHON_VERSION)
149144
def lint_setup_py(session):
150145
"""Verify that setup.py is valid (including RST check)."""
151146
session.install("docutils", "pygments")

owlbot.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,17 @@
3434
"pandas": "https://pandas.pydata.org/pandas-docs/stable/"
3535
},
3636
)
37-
s.move(templated_files, excludes=["docs/multiprocessing.rst", "README.rst", ".github/workflows/unittest.yml", "noxfile.py"])
37+
s.move(
38+
templated_files,
39+
excludes=[
40+
"docs/multiprocessing.rst",
41+
"README.rst",
42+
".github/workflows/unittest.yml",
43+
".github/workflows/docs.yml", # to avoid overwriting python version
44+
".github/workflows/lint.yml", # to avoid overwriting python version
45+
"noxfile.py",
46+
]
47+
)
3848

3949
# ----------------------------------------------------------------------------
4050
# Fixup files
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pytest==8.3.5
1+
pytest==8.4.0

0 commit comments

Comments
 (0)