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

Commit

Permalink
fix: move mypy config to pyproject file
Browse files Browse the repository at this point in the history
Fixes #1.
  • Loading branch information
kthy committed Apr 11, 2022
1 parent e992132 commit 1a806f8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ modify the copyright blurb in the source files.

## 👷 2: TODO

* [[#1](https://github.com/pyxy-dk/python-project-template/issues/1)]
Move [mypy] configuration into `pyproject.toml`
[once the functionality has stabilised](https://github.com/python/mypy/issues/5205#issuecomment-832779057).
* [[#2](https://github.com/pyxy-dk/python-project-template/issues/2)] Ensure
[pipx](https://pipxproject.github.io/pipx/) compatibility by setting up
[flit entrypoints](https://flit.readthedocs.io/en/latest/pyproject_toml.html#scripts-section).
Expand Down
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@ use_parentheses = true
line_length = 99
py_version = 37

[tool.mypy]
plugins = [
"numpy.typing.mypy_plugin",
]
python_version = "3.7"
warn_return_any = true
warn_unused_configs = true

[[tool.mypy.overrides]]
module = [
"pandapower.*",
"psycopg2",
]
ignore_missing_imports = true

[tool.pytest.ini_options]
minversion = "7.0"
filterwarnings = "error::UserWarning"
Expand Down

0 comments on commit 1a806f8

Please sign in to comment.