Use pip install -r requirements-dev.txt to install dependencies
Coding standards
Python files should be checked with ruff check, ruff check --select -I
Python files should be formatted consistently with ruff format
YAML files should be checked with yamllint
YAML files should be located in the custom_components/tuya_local/devices folder
Python files implementing the HA integration should be located in custom_components/tuya_local and its subfolders, with unit tests in tests and its subfolders.
JSON files for translations should be located in the custom_components/tuya_local/translations folder.
Icons should be defined in custom_components/tuya_local/icons.json, and use icons from the material design icons at https://pictogrammers.com/library/mdi/
Where possible, new devices should use existing translation_keys which are present in custom_components/tuya_local/translations/*.json and custom/components/tuya_local/icons.json
if new translation_keys are added, they should be generic, not device specific, and translations should be added to all files in custom_components/tuya_local/translations and relevant icons to custom_components/tuya_local/icons.json