Skip to content

Commit

Permalink
Update mypy tools
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Aug 3, 2024
1 parent 05ac5a8 commit 04a4c12
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
Empty file removed __init__.py
Empty file.
29 changes: 27 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools >= 67.6.1"]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -12,8 +12,10 @@ dependencies = [
"mashumaro>=3.13",
"openai>=1.10.0",
"google-generativeai>=0.5.4",
"hass-client>=1.2.0",
"synthetic_home>=4.3.1",
]
requires-python = ">= 3.11"
requires-python = ">= 3.12"
authors = [{ name = "Allen Porter", email = "[email protected]" }]

[tool.setuptools.packages.find]
Expand All @@ -25,3 +27,26 @@ Repository = "https://github.com/allenporter/home-assistant-datasets.git"
[project.scripts]
collect-area-data = "home_assistant_datasets.tools.collect_area_data:main"
home-assistant-datasets = "home_assistant_datasets.tool.__main__:main"

[tool.mypy]
exclude = ["setup.py", "venv/", "pyproject.toml"]
platform = "linux"
show_error_codes = true
follow_imports = "normal"
local_partial_types = true
strict_equality = true
no_implicit_optional = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
disable_error_code = ["import-untyped"]
extra_checks = false
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
2 changes: 2 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
-e .
setuptools==72.1.0
PyYAML==6.0.1
tqdm==4.66.4
mashumaro==3.13
pdoc==14.4.0
mypy==1.10.0
synthetic_home==4.3.1
hass-client==1.2.0

# Dependencies for specific ML integrations
openai==1.35.7
Expand Down

0 comments on commit 04a4c12

Please sign in to comment.