Skip to content

Commit b06eeeb

Browse files
committed
chore: tighten mypy config
1 parent 0f9be27 commit b06eeeb

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

pyproject.toml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,23 @@ lines_between_types = 1
4040
lines_after_imports = 2
4141

4242
[tool.mypy]
43-
ignore_missing_imports = true
43+
enable_error_code = [
44+
"ignore-without-code",
45+
"redundant-expr",
46+
"truthy-bool",
47+
]
48+
explicit_package_bases = true
49+
files = ["src", "tests"]
50+
mypy_path = "src"
51+
namespace_packages = true
4452
show_error_codes = true
4553
strict = true
46-
enable_error_code = ["ignore-without-code"]
47-
files = ["src", "tests"]
54+
55+
[[tool.mypy.overrides]]
56+
module = [
57+
'cleo.*',
58+
]
59+
ignore_missing_imports = true
4860

4961
[build-system]
5062
requires = ["poetry-core"]

tests/bundlers/test_venv_bundler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
if TYPE_CHECKING:
2222
from poetry.config.config import Config
23-
from poetry.poetry.poetry import Poetry
23+
from poetry.poetry import Poetry
2424
from poetry.utils.env import VirtualEnv
2525
from pytest_mock import MockerFixture
2626

0 commit comments

Comments
 (0)