We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30d9f7 commit 1225f81Copy full SHA for 1225f81
1 file changed
.pre-commit-config.yaml
@@ -18,7 +18,17 @@ repos:
18
rev: "v2.0.0" # Use the sha / tag you want to point at
19
hooks:
20
- id: mypy
21
- args: [ "--allow-untyped-globals", "--ignore-missing-imports" ]
+ args: [
22
+ "--allow-untyped-globals",
23
+ "--ignore-missing-imports",
24
+ # ``xontrib/`` is a PEP 420 namespace package (shared with every
25
+ # other xontrib-* plugin), so we cannot add an ``__init__.py``.
26
+ # Without these two flags mypy 2.x discovers ``xontrib/mplhooks.py``
27
+ # twice — once as ``xontrib.mplhooks`` (from the project root) and
28
+ # once as ``mplhooks`` (via sys.path) — and aborts.
29
+ "--explicit-package-bases",
30
+ "--namespace-packages",
31
+ ]
32
33
- repo: https://github.com/pre-commit/pre-commit-hooks
34
rev: v6.0.0
0 commit comments