pyproject.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [build-system]
  2. requires = ["uv_build >=0.11.25,<0.14"]
  3. build-backend = "uv_build"
  4. [project]
  5. name = "tuya-local"
  6. description = "A Home Assistant integration for local control of Tuya devices."
  7. version = "0.0.0"
  8. requires-python = ">=3.14.2"
  9. dependencies = [
  10. "tinytuya~=1.21.2",
  11. "tuya-device-sharing-sdk~=0.2.15"
  12. ]
  13. readme = "README.md"
  14. license = "MIT"
  15. license-file = "LICENSE.md"
  16. [project.scripts]
  17. duplicates = "util.duplicates:main"
  18. best_match = "util.best_match:main"
  19. all_matches = "util.config_match:main"
  20. match_against = "util.match_against:main"
  21. translation_candidates = "util.translation_candidates:main"
  22. untranslated_entities = "util.untranslated_entities:main"
  23. untranslated_select = "util.untranslated_select:main"
  24. catalog = "util.catalog:main"
  25. entities = "util.entities:main"
  26. [dependency-groups]
  27. dev = [
  28. "fuzzywuzzy",
  29. "infrared-protocols>=5.6",
  30. "levenshtein",
  31. "PyTurboJPEG~=1.8.0",
  32. "pytest-homeassistant==2026.11.3",
  33. "pytest",
  34. "pytest-asyncio",
  35. "pytest-cov",
  36. "pytest-mock",
  37. "ruff",
  38. "yamllint"
  39. ]
  40. [tool.pytest.ini_options]
  41. asyncio_mode = "auto"
  42. asyncio_default_fixture_loop_scope = "function"
  43. # Let HA install its httpx alias before respx is imported
  44. addopts = "-p no:respx"
  45. pythonpath = ["."]
  46. testpaths = ["tests"]
  47. [tool.ruff]
  48. target-version = "py314"
  49. [tool.ruff.lint]
  50. select = [
  51. "F", # pyflakes
  52. "E", # pycodestyle
  53. "W", # pycodestyle warnings
  54. "S", # flake8-bandit
  55. "B", # flake8-bugbear
  56. "A", # flake8-builtins
  57. ]
  58. ignore = ["E501"] # long lines (checked by ruff format)
  59. [tool.ruff.lint.per-file-ignores]
  60. "tests/**.py" = ["B011", "B028", "S101"]
  61. [tool.uv.build-backend]
  62. module-name = ["custom_components.tuya_local", "util"]
  63. module-root = ""