Skip to content

Commit b56d84e

Browse files
committed
TYP: improve mypy pre-commit
1 parent 97a792a commit b56d84e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ repos:
5656
args: []
5757
additional_dependencies:
5858
- pytest
59+
- numpy
60+
- array-api-strict
5961

6062
- repo: https://github.com/codespell-project/codespell
6163
rev: "v2.3.0"

pixi.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
163163
warn_unreachable = true
164164
disallow_untyped_defs = false
165165
disallow_incomplete_defs = false
166-
ignore_missing_imports = true
166+
# ignore_missing_imports = true
167167

168168
[[tool.mypy.overrides]]
169169
module = "array_api_extra.*"

tests/test_funcs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

3-
import array_api_strict as xp
3+
import array_api_strict as xp # type: ignore[import-untyped]
44
from numpy.testing import assert_array_equal
55

6-
from array_api_extra import atleast_nd
6+
from array_api_extra import atleast_nd # type: ignore[import-not-found]
77

88

99
class TestAtLeastND:

0 commit comments

Comments
 (0)