Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.10"
- name: Install nox
run: |
python -m pip install --upgrade setuptools pip wheel
Expand Down
11 changes: 3 additions & 8 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
LINT_PATHS = ["docs", "db_dtypes", "tests", "noxfile.py", "setup.py"]

DEFAULT_PYTHON_VERSION = "3.9"
LINT_PYTHON_VERSION = "3.10"

UNIT_TEST_PYTHON_VERSIONS: List[str] = [
"3.9",
Expand Down Expand Up @@ -86,10 +87,7 @@
nox.options.error_on_missing_interpreters = True


# TODO: the linting process still uses python 3.8.
# As soon as that gets upgraded, we should be able to revert this session
# to using the DEFAULT_PYTHON_VERSION.
@nox.session(python="3.8")
@nox.session(python=LINT_PYTHON_VERSION)
def lint(session):
"""Run linters.

Expand Down Expand Up @@ -142,10 +140,7 @@ def format(session):
)


# TODO: the linting process still uses python 3.8.
# As soon as that gets upgraded, we should be able to revert this session
# to using the DEFAULT_PYTHON_VERSION.
@nox.session(python="3.8")
@nox.session(python=LINT_PYTHON_VERSION)
def lint_setup_py(session):
"""Verify that setup.py is valid (including RST check)."""
session.install("docutils", "pygments")
Expand Down
12 changes: 11 additions & 1 deletion owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,17 @@
"pandas": "https://pandas.pydata.org/pandas-docs/stable/"
},
)
s.move(templated_files, excludes=["docs/multiprocessing.rst", "README.rst", ".github/workflows/unittest.yml", "noxfile.py"])
s.move(
templated_files,
excludes=[
"docs/multiprocessing.rst",
"README.rst",
".github/workflows/unittest.yml",
".github/workflows/docs.yml", # to avoid overwriting python version
".github/workflows/lint.yml", # to avoid overwriting python version
"noxfile.py",
]
)

# ----------------------------------------------------------------------------
# Fixup files
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest==8.3.5
pytest==8.4.0