python-kasa/kasa/iot
Teemu R. 6a86ffbbba
Add flake8-pytest-style (PT) for ruff (#1105)
This will catch common issues with pytest code.

* Use `match` when using `pytest.raises()` for base exception types like
`TypeError` or `ValueError`
* Use tuples for `parametrize()`
* Enforces `pytest.raises()` to contain simple statements, using `noqa`
to skip this on some cases for now.
* Fixes incorrect exception type (valueerror instead of typeerror) for
iotdimmer.
* Adds check valid types for `iotbulb.set_hsv` and `color` smart module.
* Consolidate exception messages for common interface modules.
2024-08-30 17:30:07 +02:00
..
modules Fix iot light effect brightness (#1092) 2024-07-31 15:58:48 +01:00
__init__.py Update poetry locks and pre-commit hooks (#837) 2024-04-16 20:21:20 +02:00
effects.py Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
iotbulb.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
iotdevice.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00
iotdimmer.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
iotlightstrip.py Add some device fixtures (#948) 2024-06-04 19:24:53 +02:00
iotmodule.py Improve performance of dict merge code (#1097) 2024-08-14 16:33:54 -05:00
iotplug.py Update documentation structure and start migrating to markdown (#934) 2024-06-03 10:14:10 +01:00
iotstrip.py Support child devices in all applicable cli commands (#1020) 2024-07-02 15:11:19 +02:00