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
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,21 @@ jobs:
- name: format-ignores
run: uv run tool/format_ignores.py --check

# NOTE: Static typing only differs between `python<3.12` and otherwise,
# so there's no need to run the type-checkers on all Python versions.

basedpyright:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
py: ["3.11", "3.12", "3.13", "3.14"]
py: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v4.2.2

- uses: astral-sh/setup-uv@v6.4.3
with:
enable-cache: true
python-version: ${{ matrix.py }}

- name: basedpyright
Expand All @@ -79,7 +81,7 @@ jobs:
strategy:
fail-fast: false
matrix:
py: ["3.11", "3.12", "3.13", "3.14"]
py: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v4.2.2

Expand All @@ -90,6 +92,8 @@ jobs:
- name: mypy
run: uv run --no-editable mypy --no-incremental --cache-dir=/dev/null .

# NOTE: Stubtest does runtime inspections, so we consider all Python versions.

stubtest:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ typecheck = [
]
docs = [
"mkdocs-material>=9.6.16",
"pydantic>=2.12.0a1; python_version >= '3.14'", # needed for mkdocs-awesome-nav
"mkdocs-awesome-nav>=3.1.2",
"markdown-callouts>=0.4.0",
"mkdocs-include-markdown-plugin>=7.1.6",
Expand Down
2 changes: 1 addition & 1 deletion tool/allowlists/lt-py312.txt → tool/allowlists/py311.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# python < 3.12
# python 3.11.*

# distutils is deprecated and does not exist on python>=3.12
numpy\.distutils\.command\.\w+
Expand Down
2 changes: 1 addition & 1 deletion tool/allowlists/ge-py312.txt → tool/allowlists/py312.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# python >= 3.12
# python 3.12.*

numpy\.distutils
numpy\.f2py\._backends\._distutils
4 changes: 4 additions & 0 deletions tool/allowlists/py313.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# python 3.13.*

numpy\.distutils
numpy\.f2py\._backends\._distutils
5 changes: 5 additions & 0 deletions tool/allowlists/py314.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# python 3.14.*

numpy\.distutils
numpy\.f2py\._backends\._distutils
numpy\._core\._type_aliases\.__conditional_annotations__
5 changes: 1 addition & 4 deletions tool/stubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@
__root_site = None
ROOT_SITE_DIR = __root_site

ALLOWLISTS = [
"common.txt",
("ge" if sys.version_info >= (3, 12) else "lt") + "-py312.txt",
]
ALLOWLISTS = ["common.txt", f"py3{sys.version_info.minor}.txt"]


def __check_simd() -> None:
Expand Down
2 changes: 2 additions & 0 deletions tool/stubtest.py.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tool/ufunc.py.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

131 changes: 124 additions & 7 deletions uv.lock

Large diffs are not rendered by default.

Loading