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
1 change: 0 additions & 1 deletion .ci/requirements-mypy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ packaging
pyarrow-stubs
pybind11
pytest
sphinx
types-atheris
types-defusedxml
types-olefile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@v6
with:
python-version: "3.10"
python-version: "3.x"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Lint
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ repos:
rev: v0.24.1
hooks:
- id: validate-pyproject
additional_dependencies: [tomli, trove-classifiers>=2024.10.12]
additional_dependencies: [trove-classifiers>=2024.10.12]

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.7.0
Expand Down
6 changes: 3 additions & 3 deletions docs/dater.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

TYPE_CHECKING = False
if TYPE_CHECKING:
from sphinx.application import Sphinx
from typing import Any

DOC_NAME_REGEX = re.compile(r"releasenotes/\d+\.\d+\.\d+")
VERSION_TITLE_REGEX = re.compile(r"^(\d+\.\d+\.\d+)\n-+\n")
Expand All @@ -28,7 +28,7 @@ def get_date_for(git_version: str) -> str | None:
return out.split()[0]


def add_date(app: Sphinx, doc_name: str, source: list[str]) -> None:
def add_date(app: Any, doc_name: str, source: list[str]) -> None:
if DOC_NAME_REGEX.match(doc_name) and (m := VERSION_TITLE_REGEX.match(source[0])):
old_title = m.group(1)

Expand All @@ -43,6 +43,6 @@ def add_date(app: Sphinx, doc_name: str, source: list[str]) -> None:
source[0] = result


def setup(app: Sphinx) -> dict[str, bool]:
def setup(app: Any) -> dict[str, bool]:
app.connect("source-read", add_date)
return {"parallel_read_safe": True}
Loading