Skip to content

Commit 72f9a3e

Browse files
committed
cleanup
1 parent 6aa975c commit 72f9a3e

File tree

8 files changed

+54
-45
lines changed

8 files changed

+54
-45
lines changed

codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
comment: false
22
ignore:
3-
- "src/array_api_extra/_compat"
4-
- "src/array_api_extra/_typing"
3+
- "src/array_api_extra/_lib/_compat"
4+
- "src/array_api_extra/_lib/_typing"

pixi.lock

Lines changed: 39 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,14 @@ numpy = "*"
8181
pytest = "*"
8282

8383
[tool.pixi.feature.lint.pypi-dependencies]
84-
# basedpyright = "*"
85-
pyright = "*"
84+
basedpyright = "*"
8685

8786
[tool.pixi.feature.lint.tasks]
8887
pre-commit-install = { cmd = "pre-commit install" }
8988
pre-commit = { cmd = "pre-commit run -v --all-files --show-diff-on-failure" }
9089
mypy = { cmd = "mypy", cwd = "." }
9190
pylint = { cmd = ["pylint", "array_api_extra"], cwd = "src" }
92-
# pyright = { cmd = "basedpyright", cwd = "." }
93-
pyright = { cmd = "pyright", cwd = "." }
91+
pyright = { cmd = "basedpyright", cwd = "." }
9492
lint = { depends-on = ["pre-commit", "pylint", "mypy", "pyright"] }
9593

9694
[tool.pixi.feature.tests.dependencies]
@@ -185,25 +183,17 @@ disallow_incomplete_defs = true
185183

186184
# pyright
187185

188-
# [tool.basedpyright]
189-
# include = ["src", "tests"]
190-
# pythonVersion = "3.10"
191-
# pythonPlatform = "All"
192-
# typeCheckingMode = "all"
193-
194-
# # data-apis/array-api#589
195-
# reportAny = false
196-
# reportExplicitAny = false
197-
# # data-apis/array-api-strict#6
198-
# reportUnknownMemberType = false
199-
200-
[tool.pyright]
186+
[tool.basedpyright]
201187
include = ["src", "tests"]
202188
pythonVersion = "3.10"
203189
pythonPlatform = "All"
204-
typeCheckingMode = "strict"
190+
typeCheckingMode = "all"
191+
192+
# data-apis/array-api#589
193+
reportAny = false
194+
reportExplicitAny = false
195+
# data-apis/array-api-strict#6
205196
reportUnknownMemberType = false
206-
reportImportCycles = true
207197

208198

209199
# Ruff

src/array_api_extra/_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import warnings
55

66
if typing.TYPE_CHECKING:
7-
from ._typing import Array, ModuleType
7+
from ._lib._typing import Array, ModuleType
88

99
from ._lib import _utils
1010

src/array_api_extra/_lib/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing_extensions import override
1010

1111
if typing.TYPE_CHECKING:
12-
from .._typing import Array, Device
12+
from ._typing import Array, Device
1313

1414
__all__ = ["device"]
1515

File renamed without changes.

src/array_api_extra/_lib/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import typing
44

55
if typing.TYPE_CHECKING:
6-
from .._typing import Array, ModuleType
6+
from ._typing import Array, ModuleType
77

88
from . import _compat
99

tests/test_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from array_api_extra import atleast_nd, cov, create_diagonal, expand_dims, kron, sinc
1414

1515
if typing.TYPE_CHECKING:
16-
from array_api_extra._typing import Array
16+
from array_api_extra._lib._typing import Array
1717

1818

1919
class TestAtLeastND:

0 commit comments

Comments
 (0)