diff --git a/public/__init__.py b/public/__init__.py index 1debde5485..493110db57 100644 --- a/public/__init__.py +++ b/public/__init__.py @@ -2,6 +2,6 @@ from pathlib import Path -def where(): +def where() -> Path: """Return path to the frontend.""" return Path(__file__).parent diff --git a/public/py.typed b/public/py.typed new file mode 100644 index 0000000000..e69de29bb2 diff --git a/setup.cfg b/setup.cfg index f3efcd2597..3690791245 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,3 +19,8 @@ python_requires = >= 3.4.0 [options.packages.find] include = hass_frontend* + +[mypy] +python_version = 3.4 +show_error_codes = True +strict = True