File tree 3 files changed +4
-12
lines changed
3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ ignore_missing_imports = true
3
3
exclude = tests/fixtures/
4
4
warn_unused_ignores = true
5
5
show_error_codes = true
6
+ namespace_packages = true
7
+ explicit_package_bases = true
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ def check_types(ctx): # noqa: WPS231
196
196
Arguments:
197
197
ctx: The context instance (passed automatically).
198
198
"""
199
+ os .environ ["MYPYPATH" ] = "src"
199
200
ctx .run (f"mypy --config-file config/mypy.ini { PY_SRC } " , title = "Type-checking" , pty = PTY )
200
201
201
202
Original file line number Diff line number Diff line change 7
7
import pytest
8
8
from markdown .core import Markdown
9
9
from mkdocs import config
10
-
11
- try :
12
- from mkdocs .config .defaults import get_schema
13
- except ImportError :
14
-
15
- def get_schema () -> tuple [tuple ]: # noqa: WPS440
16
- """Fallback for old versions of MkDocs.
17
-
18
- Returns:
19
- The default schema.
20
- """
21
- return config .DEFAULT_SCHEMA
10
+ from mkdocs .config .defaults import get_schema
22
11
23
12
24
13
@pytest .fixture (name = "mkdocs_conf" )
You can’t perform that action at this time.
0 commit comments