Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit 1a806f8

Browse files
committed
fix: move mypy config to pyproject file
Fixes #1.
1 parent e992132 commit 1a806f8

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ modify the copyright blurb in the source files.
4343

4444
## 👷 2: TODO
4545

46-
* [[#1](https://github.com/pyxy-dk/python-project-template/issues/1)]
47-
Move [mypy] configuration into `pyproject.toml`
48-
[once the functionality has stabilised](https://github.com/python/mypy/issues/5205#issuecomment-832779057).
4946
* [[#2](https://github.com/pyxy-dk/python-project-template/issues/2)] Ensure
5047
[pipx](https://pipxproject.github.io/pipx/) compatibility by setting up
5148
[flit entrypoints](https://flit.readthedocs.io/en/latest/pyproject_toml.html#scripts-section).

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ use_parentheses = true
6767
line_length = 99
6868
py_version = 37
6969

70+
[tool.mypy]
71+
plugins = [
72+
"numpy.typing.mypy_plugin",
73+
]
74+
python_version = "3.7"
75+
warn_return_any = true
76+
warn_unused_configs = true
77+
78+
[[tool.mypy.overrides]]
79+
module = [
80+
"pandapower.*",
81+
"psycopg2",
82+
]
83+
ignore_missing_imports = true
84+
7085
[tool.pytest.ini_options]
7186
minversion = "7.0"
7287
filterwarnings = "error::UserWarning"

0 commit comments

Comments
 (0)