Skip to content

Commit 49cce94

Browse files
authored
[pyodide#5753] Exclude pyodide-build from mypy pre-commit checks (pyodide#5801)
1 parent 2b4a01d commit 49cce94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ repos:
5959
rev: "v1.14.1"
6060
hooks:
6161
- id: mypy
62-
files: ^(packages/.*/src|src|pyodide-build/pyodide_build)
63-
exclude: (setup.py|.*test.*)
62+
files: ^(packages/.*/src|src)
63+
exclude: (setup.py|.*test.*|pyodide-build)
6464
args: []
6565
additional_dependencies: &mypy-deps
6666
- packaging
@@ -82,7 +82,7 @@ repos:
8282
name: mypy-tests
8383
args: [--ignore-missing-imports]
8484
files: ^(packages/|docs|/conftest.py|src/tests)
85-
exclude: (^packages/.*/setup.py|/src)
85+
exclude: (^packages/.*/setup.py|/src|pyodide-build)
8686
additional_dependencies: *mypy-deps
8787

8888
- repo: https://github.com/pre-commit/mirrors-prettier

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.mypy]
22
python_version = "3.13"
3-
mypy_path = ["src/py", "pyodide-build"]
3+
mypy_path = ["src/py"]
44
show_error_codes = true
55
warn_unreachable = true
66
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]

0 commit comments

Comments
 (0)