Skip to content

Commit c892b36

Browse files
committed
fix: run copier update
1 parent 5d7869f commit c892b36

File tree

10 files changed

+169
-113
lines changed

10 files changed

+169
-113
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[codespell]
2-
ignore-words-list = socio-economic
2+
ignore-words-list = socio-economic,fro

.copier-answers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 2e4f7d0
2+
_commit: af9b795
33
_src_path: gh:34j/pypackage-template
44
cli_name: array-api
55
copyright_year: '2025'
@@ -11,6 +11,7 @@ has_cli: true
1111
initial_commit: false
1212
is_django_package: false
1313
open_source_license: Apache Software License 2.0
14+
open_with_editor: false
1415
package_name: array_api
1516
project_name: Python array API standard typing
1617
project_short_description: Typing for array API and array-api-compat

.gitignore

Lines changed: 58 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# https://github.com/github/gitignore/blob/main/Python.gitignore
21
# Byte-compiled / optimized / DLL files
32
__pycache__/
4-
*.py[cod]
3+
*.py[codz]
54
*$py.class
65

76
# C extensions
@@ -28,8 +27,8 @@ share/python-wheels/
2827
MANIFEST
2928

3029
# PyInstaller
31-
# Usually these files are written by a python script from a template
32-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3332
*.manifest
3433
*.spec
3534

@@ -47,7 +46,7 @@ htmlcov/
4746
nosetests.xml
4847
coverage.xml
4948
*.cover
50-
*.py,cover
49+
*.py.cover
5150
.hypothesis/
5251
.pytest_cache/
5352
cover/
@@ -93,43 +92,64 @@ ipython_config.py
9392
# However, in case of collaboration, if having platform-specific dependencies or dependencies
9493
# having no cross-platform support, pipenv may install dependencies that don't work, or not
9594
# install all needed dependencies.
96-
#Pipfile.lock
95+
# Pipfile.lock
9796

9897
# UV
9998
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
10099
# This is especially recommended for binary packages to ensure reproducibility, and is more
101100
# commonly ignored for libraries.
102-
#uv.lock
101+
# uv.lock
103102

104103
# poetry
105104
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106105
# This is especially recommended for binary packages to ensure reproducibility, and is more
107106
# commonly ignored for libraries.
108107
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109-
#poetry.lock
108+
# poetry.lock
109+
# poetry.toml
110110

111111
# pdm
112112
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113-
#pdm.lock
114-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
115-
# in version control.
116-
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
117-
.pdm.toml
113+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115+
# pdm.lock
116+
# pdm.toml
118117
.pdm-python
119118
.pdm-build/
120119

120+
# pixi
121+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122+
# pixi.lock
123+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124+
# in the .venv directory. It is recommended not to include this directory in version control.
125+
.pixi
126+
121127
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
122128
__pypackages__/
123129

124130
# Celery stuff
125131
celerybeat-schedule
126132
celerybeat.pid
127133

134+
# Redis
135+
*.rdb
136+
*.aof
137+
*.pid
138+
139+
# RabbitMQ
140+
mnesia/
141+
rabbitmq/
142+
rabbitmq-data/
143+
144+
# ActiveMQ
145+
activemq-data/
146+
128147
# SageMath parsed files
129148
*.sage.py
130149

131150
# Environments
132151
.env
152+
.envrc
133153
.venv
134154
env/
135155
venv/
@@ -162,14 +182,35 @@ dmypy.json
162182
cython_debug/
163183

164184
# PyCharm
165-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
166-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
167-
# and can be added to the global gitignore or merged into this file. For a more nuclear
168-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
185+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187+
# and can be added to the global gitignore or merged into this file. For a more nuclear
188+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
169189
.idea/
170190

191+
# Abstra
192+
# Abstra is an AI-powered process automation framework.
193+
# Ignore directories containing user credentials, local state, and settings.
194+
# Learn more at https://abstra.io/docs
195+
.abstra/
196+
197+
# Visual Studio Code
198+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
201+
# you could uncomment the following to ignore the entire vscode folder
202+
# .vscode/
203+
171204
# Ruff stuff:
172205
.ruff_cache/
173206

174207
# PyPI configuration file
175208
.pypirc
209+
210+
# Marimo
211+
marimo/_static/
212+
marimo/_lsp/
213+
__marimo__/
214+
215+
# Streamlit
216+
.streamlit/secrets.toml

.pre-commit-config.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3-
exclude: "CHANGELOG.md|.copier-answers.yml|.all-contributorsrc|project"
3+
exclude: "CHANGELOG.md|.copier-answers.yml|.all-contributorsrc"
44
default_stages: [pre-commit]
55

66
ci:
@@ -51,17 +51,19 @@ repos:
5151
- id: prettier
5252
args: ["--tab-width", "2"]
5353
- repo: https://github.com/astral-sh/ruff-pre-commit
54-
rev: v0.15.4
54+
rev: v0.15.2
5555
hooks:
56-
- id: ruff
57-
args: [--fix, --unsafe-fixes, --exit-non-zero-on-fix]
56+
- id: ruff-check
57+
args: [--fix, --exit-non-zero-on-fix]
5858
- id: ruff-format
59-
# - repo: https://github.com/codespell-project/codespell
60-
# rev: v2.4.1
61-
# hooks:
62-
# - id: codespell
59+
- repo: https://github.com/codespell-project/codespell
60+
rev: v2.4.1
61+
hooks:
62+
- id: codespell
63+
64+
exclude: "_draft.py"
6365
- repo: https://github.com/pre-commit/mirrors-mypy
64-
rev: v1.16.1
66+
rev: v1.19.1
6567
hooks:
6668
- id: mypy
6769
additional_dependencies: [attrs]

.readthedocs.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Read the Docs configuration file
22
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
33

4-
# Required
54
version: 2
65

7-
# Set the version of Python and other tools you might need
86
build:
9-
os: ubuntu-22.04
7+
os: ubuntu-24.04
108
tools:
11-
python: "3.12"
12-
commands:
13-
- asdf plugin add uv
14-
- asdf install uv latest
15-
- asdf global uv latest
16-
- uv sync --only-group docs --frozen
17-
- uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
9+
python: "3.13"
10+
jobs:
11+
pre_create_environment:
12+
- asdf plugin add uv
13+
- asdf install uv latest
14+
- asdf global uv latest
15+
create_environment:
16+
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
17+
install:
18+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --no-dev --group docs
1819

19-
# Build documentation in the docs directory with Sphinx
2020
sphinx:
2121
configuration: docs/conf.py

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<p align="center">
44
<a href="https://github.com/34j/types-array-api/actions/workflows/ci.yml?query=branch%3Amain">
5-
<img src="https://img.shields.io/github/actions/workflow/status/34j/array-api/ci.yml?branch=main&label=CI&logo=github&style=flat-square" alt="CI Status" >
5+
<img src="https://img.shields.io/github/actions/workflow/status/34j/types-array-api/ci.yml?branch=main&label=CI&logo=github&style=flat-square" alt="CI Status" >
66
</a>
77
<a href="https://array-api.readthedocs.io">
8-
<img src="https://img.shields.io/readthedocs/array-api.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">
8+
<img src="https://img.shields.io/readthedocs/types-array-api.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">
99
</a>
10-
<a href="https://codecov.io/gh/34j/array-api">
11-
<img src="https://img.shields.io/codecov/c/github/34j/array-api.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
10+
<a href="https://codecov.io/gh/34j/types-array-api">
11+
<img src="https://img.shields.io/codecov/c/github/34j/types-array-api.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
1212
</a>
1313
</p>
1414
<p align="center">
@@ -23,11 +23,11 @@
2323
</a>
2424
</p>
2525
<p align="center">
26-
<a href="https://pypi.org/project/array-api/">
27-
<img src="https://img.shields.io/pypi/v/array-api.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
26+
<a href="https://pypi.org/project/types-array-api/">
27+
<img src="https://img.shields.io/pypi/v/types-array-api.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
2828
</a>
29-
<img src="https://img.shields.io/pypi/pyversions/array-api.svg?style=flat-square&logo=python&amp;logoColor=fff" alt="Supported Python versions">
30-
<img src="https://img.shields.io/pypi/l/array-api.svg?style=flat-square" alt="License">
29+
<img src="https://img.shields.io/pypi/pyversions/types-array-api.svg?style=flat-square&logo=python&amp;logoColor=fff" alt="Supported Python versions">
30+
<img src="https://img.shields.io/pypi/l/types-array-api.svg?style=flat-square" alt="License">
3131
</p>
3232

3333
---

conftest.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
from sybil import Sybil
2+
from sybil.evaluators.doctest import NUMBER
3+
from sybil.parsers.myst import ClearNamespaceParser as MarkdownClearNamespaceParser
4+
from sybil.parsers.myst import DocTestDirectiveParser as MarkdownDocTestParser
5+
from sybil.parsers.myst import PythonCodeBlockParser as MarkdownPythonCodeBlockParser
6+
from sybil.parsers.myst import SkipParser as MarkdownSkipParser
7+
from sybil.parsers.rest import ClearNamespaceParser as ReSTClearNamespaceParser
8+
from sybil.parsers.rest import DocTestParser as ReSTDocTestParser
9+
from sybil.parsers.rest import PythonCodeBlockParser as ReSTPythonCodeBlockParser
10+
from sybil.parsers.rest import SkipParser as ReSTSkipParser
11+
12+
markdown_examples = Sybil(
13+
parsers=[
14+
MarkdownDocTestParser(NUMBER),
15+
MarkdownPythonCodeBlockParser(doctest_optionflags=NUMBER),
16+
MarkdownSkipParser(),
17+
MarkdownClearNamespaceParser(),
18+
],
19+
patterns=["*.md"],
20+
)
21+
22+
rest_examples = Sybil(
23+
parsers=[
24+
ReSTDocTestParser(NUMBER),
25+
ReSTPythonCodeBlockParser(),
26+
ReSTSkipParser(),
27+
ReSTClearNamespaceParser(),
28+
],
29+
patterns=["*.py", "*.rst"],
30+
)
31+
32+
pytest_collect_file = (markdown_examples + rest_examples).pytest()

docs/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Welcome to Python array API standard typing documentation!
1+
```{include} ../README.md
2+
3+
```
24

35
```{toctree}
46
:caption: Installation & Usage
@@ -22,7 +24,3 @@ contributing
2224
2325
array_api
2426
```
25-
26-
```{include} ../README.md
27-
28-
```

0 commit comments

Comments
 (0)