Skip to content

Commit 28a9995

Browse files
committed
ci: fix mypy error
1 parent 78239df commit 28a9995

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ repos:
5353
hooks:
5454
- id: mypy
5555
additional_dependencies: []
56+
args: [--ignore-missing-imports, --strict, .]
57+
pass_filenames: false

pyproject.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,14 @@ build-backend = "setuptools.build_meta"
3434
line-length = 88
3535

3636
[tool.mypy]
37-
mypy_path = "src/array_api_stubs/_draft"
3837
exclude = [
39-
"docs/",
40-
"spec/",
41-
"venv/",
42-
".venv/",
43-
"src/array_api_stubs/_2021_12/",
44-
"src/array_api_stubs/_2022_12/",
45-
"src/array_api_stubs/_2023_12/",
46-
"src/array_api_conf.py"
38+
"docs/.*",
39+
"spec/.*",
40+
"venv/.*",
41+
".venv/.*",
42+
"src/array_api_stubs/_2021_12/.*",
43+
"src/array_api_stubs/_2022_12/.*",
44+
"src/array_api_stubs/_2023_12/.*",
45+
"src/_array_api_conf.py"
4746
]
4847
disable_error_code = "empty-body,type-var"

0 commit comments

Comments
 (0)