python-kasa/kasa/smart
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 Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
__init__.py Move SmartBulb into SmartDevice (#874) 2024-04-29 18:19:44 +01:00
effects.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
smartchilddevice.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
smartdevice.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
smartmodule.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00