Skip to content

Commit d840d77

Browse files
committed
🤖 uv run dprint fmt
1 parent b3799e8 commit d840d77

File tree

3 files changed

+133
-142
lines changed

3 files changed

+133
-142
lines changed

‎README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
> for working with the [Python array API standard](https://data-apis.org/array-api/latest/), but it
99
> may change significantly in the future.
1010
11-
1211
## Installation
1312

1413
```bash
@@ -54,5 +53,4 @@ pip install -e . # editable mode
5453

5554
>>> func(np.array([1, 2, 3]))
5655
array([1, 2, 3])
57-
5856
```

‎pyproject.toml

Lines changed: 131 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,159 +1,152 @@
11
[project]
2-
name = "array-api-typing"
3-
dynamic = ["version"]
4-
description = "Static typing support for the array API standard"
5-
readme = "README.md"
6-
requires-python = ">=3.10"
7-
license = "MIT"
8-
authors = [
9-
{ name = "Consortium for Python Data API Standards", email = "[email protected]" },
10-
{ name = "Joren Hammudoglu", email = "[email protected]" },
11-
{ name = "Nathaniel Starkman", email = "[email protected]" },
12-
]
13-
classifiers = [
14-
"Development Status :: 1 - Planning",
15-
"Intended Audience :: Developers",
16-
"License :: OSI Approved :: MIT License",
17-
"Operating System :: OS Independent",
18-
"Programming Language :: Python :: 3 :: Only",
19-
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3.10",
21-
"Programming Language :: Python :: 3.11",
22-
"Programming Language :: Python :: 3.12",
23-
"Programming Language :: Python :: 3.13",
24-
"Programming Language :: Python",
25-
"Topic :: Scientific/Engineering",
26-
"Typing :: Typed",
27-
]
28-
dependencies = [
29-
"typing-extensions>=4.14.1",
30-
]
31-
32-
[project.urls]
33-
Repository = "https://github.com/data-apis/array-api-typing"
34-
Changelog = "https://github.com/data-apis/array-api-typing/releases"
35-
2+
name = "array-api-typing"
3+
dynamic = ["version"]
4+
description = "Static typing support for the array API standard"
5+
readme = "README.md"
6+
requires-python = ">=3.10"
7+
license = "MIT"
8+
authors = [
9+
{ name = "Consortium for Python Data API Standards", email = "[email protected]" },
10+
{ name = "Joren Hammudoglu", email = "[email protected]" },
11+
{ name = "Nathaniel Starkman", email = "[email protected]" },
12+
]
13+
classifiers = [
14+
"Development Status :: 1 - Planning",
15+
"Intended Audience :: Developers",
16+
"License :: OSI Approved :: MIT License",
17+
"Operating System :: OS Independent",
18+
"Programming Language :: Python :: 3 :: Only",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
24+
"Programming Language :: Python",
25+
"Topic :: Scientific/Engineering",
26+
"Typing :: Typed",
27+
]
28+
dependencies = [
29+
"typing-extensions>=4.14.1",
30+
]
31+
32+
[project.urls]
33+
Repository = "https://github.com/data-apis/array-api-typing"
34+
Changelog = "https://github.com/data-apis/array-api-typing/releases"
3635

3736
[build-system]
38-
requires = ["hatch-vcs", "hatchling"]
39-
build-backend = "hatchling.build"
40-
37+
requires = ["hatch-vcs", "hatchling"]
38+
build-backend = "hatchling.build"
4139

4240
[dependency-groups]
43-
dev = [
44-
{ include-group = "lint" },
45-
{ include-group = "mypy" },
46-
{ include-group = "test_runtime" },
47-
{ include-group = "test_numpy" },
48-
"lefthook==1.12.2",
49-
"orjson>=3.11.0; python_version<'3.14'", # used by mypy
50-
]
51-
lint = [
52-
"ruff==0.12.4",
53-
"dprint-py>=0.50.0.0",
54-
]
55-
mypy = [
56-
"mypy==1.17.0",
57-
]
58-
test_runtime = [
59-
"pytest==8.4.1",
60-
"pytest-cov>=6.2.1",
61-
"pytest-github-actions-annotate-failures==0.3.0",
62-
"sybil==9.1.0",
63-
]
64-
test_numpy = [
65-
"numpy>=1.25",
66-
]
67-
41+
dev = [
42+
{ include-group = "lint" },
43+
{ include-group = "mypy" },
44+
{ include-group = "test_runtime" },
45+
{ include-group = "test_numpy" },
46+
"lefthook==1.12.2",
47+
"orjson>=3.11.0; python_version<'3.14'", # used by mypy
48+
]
49+
lint = [
50+
"ruff==0.12.4",
51+
"dprint-py>=0.50.0.0",
52+
]
53+
mypy = [
54+
"mypy==1.17.0",
55+
]
56+
test_runtime = [
57+
"pytest==8.4.1",
58+
"pytest-cov>=6.2.1",
59+
"pytest-github-actions-annotate-failures==0.3.0",
60+
"sybil==9.1.0",
61+
]
62+
test_numpy = [
63+
"numpy>=1.25",
64+
]
6865

6966
[tool.hatch]
70-
version.source = "vcs"
67+
version.source = "vcs"
7168

72-
[tool.hatch.build.hooks.vcs]
73-
version-file = "src/array_api_typing/_version.py"
74-
template = '''
69+
[tool.hatch.build.hooks.vcs]
70+
version-file = "src/array_api_typing/_version.py"
71+
template = '''
7572
# This file is automatically generated by Hatch
7673
version = {version!r}
7774
version_tuple = {version_tuple!r}
7875
'''
7976

80-
8177
[tool.coverage]
82-
report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:']
83-
run.source = ["array-api-typing"]
84-
run.branch = true
85-
78+
report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:']
79+
run.source = ["array-api-typing"]
80+
run.branch = true
8681

8782
[tool.mypy]
88-
mypy_path = ["src"]
89-
namespace_packages = true
90-
91-
strict = true
92-
allow_redefinition_new = true
93-
local_partial_types = true
94-
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
95-
warn_unreachable = true
83+
mypy_path = ["src"]
84+
namespace_packages = true
9685

86+
strict = true
87+
allow_redefinition_new = true
88+
local_partial_types = true
89+
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
90+
warn_unreachable = true
9791

9892
[tool.pytest.ini_options]
99-
addopts = [
100-
"--showlocals",
101-
"--strict-config",
102-
"--strict-markers",
103-
"-p no:doctest", # using sybil
104-
"-ra",
105-
]
106-
filterwarnings = [
107-
"error",
108-
# Sybil
109-
"ignore:Attribute s is deprecated and will be removed in Python 3\\.14:DeprecationWarning",
110-
"ignore:ast\\.Str is deprecated and will be removed in Python 3\\.14:DeprecationWarning",
111-
]
112-
log_cli_level = "INFO"
113-
minversion = "8.4"
114-
testpaths = ["README.md", "src/", "tests/runtime/"]
115-
xfail_strict = true
116-
93+
addopts = [
94+
"--showlocals",
95+
"--strict-config",
96+
"--strict-markers",
97+
"-p no:doctest", # using sybil
98+
"-ra",
99+
]
100+
filterwarnings = [
101+
"error",
102+
# Sybil
103+
"ignore:Attribute s is deprecated and will be removed in Python 3\\.14:DeprecationWarning",
104+
"ignore:ast\\.Str is deprecated and will be removed in Python 3\\.14:DeprecationWarning",
105+
]
106+
log_cli_level = "INFO"
107+
minversion = "8.4"
108+
testpaths = ["README.md", "src/", "tests/runtime/"]
109+
xfail_strict = true
117110

118111
[tool.ruff]
119-
preview = true
120-
force-exclude = true
121-
122-
[tool.ruff.lint]
123-
extend-select = ["ALL"]
124-
ignore = [
125-
"COM812", # Conflicts with formatter
126-
"CPY", # Missing copyright notice at top of file (NOTE revisit when autofixable)
127-
"D105", # Missing docstring in magic method
128-
"D107", # Missing docstring in __init__
129-
"D203", # 1 blank line required before class docstring
130-
"D213", # Multi-line docstring summary should start at the second line
131-
"FBT", # flake8-boolean-trap
132-
"FIX", # flake8-fixme
133-
"ISC001", # Conflicts with formatter
134-
]
135-
136-
[tool.ruff.lint.pylint]
137-
allow-dunder-method-names = [
138-
"__array_api_version__",
139-
"__array_namespace__",
140-
"__array_namespace_info__",
141-
"__dlpack__",
142-
"__dlpack_device__",
143-
"__dlpack_device__",
144-
]
145-
146-
[tool.ruff.lint.flake8-import-conventions]
147-
banned-from = ["array_api_typing"]
148-
149-
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
150-
array_api_typing = "xpt"
151-
152-
[tool.ruff.lint.isort]
153-
combine-as-imports = true
154-
extra-standard-library = ["_typeshed", "typing_extensions"]
155-
known-local-folder = ["array_api_typing"]
156-
157-
[tool.ruff.format]
158-
docstring-code-format = true
159-
line-ending = "lf"
112+
preview = true
113+
force-exclude = true
114+
115+
[tool.ruff.lint]
116+
extend-select = ["ALL"]
117+
ignore = [
118+
"COM812", # Conflicts with formatter
119+
"CPY", # Missing copyright notice at top of file (NOTE revisit when autofixable)
120+
"D105", # Missing docstring in magic method
121+
"D107", # Missing docstring in __init__
122+
"D203", # 1 blank line required before class docstring
123+
"D213", # Multi-line docstring summary should start at the second line
124+
"FBT", # flake8-boolean-trap
125+
"FIX", # flake8-fixme
126+
"ISC001", # Conflicts with formatter
127+
]
128+
129+
[tool.ruff.lint.pylint]
130+
allow-dunder-method-names = [
131+
"__array_api_version__",
132+
"__array_namespace__",
133+
"__array_namespace_info__",
134+
"__dlpack__",
135+
"__dlpack_device__",
136+
"__dlpack_device__",
137+
]
138+
139+
[tool.ruff.lint.flake8-import-conventions]
140+
banned-from = ["array_api_typing"]
141+
142+
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
143+
array_api_typing = "xpt"
144+
145+
[tool.ruff.lint.isort]
146+
combine-as-imports = true
147+
extra-standard-library = ["_typeshed", "typing_extensions"]
148+
known-local-folder = ["array_api_typing"]
149+
150+
[tool.ruff.format]
151+
docstring-code-format = true
152+
line-ending = "lf"

‎tests/.ruff.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extend = "../pyproject.toml"
33
[lint]
44
extend-ignore = [
55
"ANN201", # https://docs.astral.sh/ruff/rules/missing-return-type-undocumented-public-function/
6-
"D1", # https://docs.astral.sh/ruff/rules/#pydocstyle-d
6+
"D1", # https://docs.astral.sh/ruff/rules/#pydocstyle-d
77
"INP001", # https://docs.astral.sh/ruff/rules/implicit-namespace-package/
8-
"S101", # https://docs.astral.sh/ruff/rules/assert/
8+
"S101", # https://docs.astral.sh/ruff/rules/assert/
99
]

0 commit comments

Comments
 (0)