python-kasa/kasa
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
..
cli Split out main cli module into lazily loaded submodules (#1039) 2024-07-23 19:13:52 +01:00
interfaces Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
iot Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
smart Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
tests Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
__init__.py Make device initialisation easier by reducing required imports (#936) 2024-06-03 19:06:54 +01:00
aestransport.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00
credentials.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
device_factory.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00
device_type.py Add temperature control module for smart (#848) 2024-04-22 12:39:07 +01:00
device.py Expose reboot action (#1073) 2024-07-24 15:47:38 +02:00
deviceconfig.py Make device initialisation easier by reducing required imports (#936) 2024-06-03 19:06:54 +01:00
discover.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00
emeterstatus.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00
exceptions.py Defer module updates for less volatile modules (#1052) 2024-07-11 16:21:59 +01:00
feature.py Enable setting brightness with color temp for smart devices (#1091) 2024-07-31 15:52:27 +01:00
httpclient.py Use monotonic time for query timing (#1070) 2024-07-16 14:25:32 +02:00
iotprotocol.py Redact sensitive info from debug logs (#1069) 2024-07-17 19:57:09 +02:00
json.py Generate AES KeyPair lazily (#687) 2024-01-23 15:29:27 +00:00
klaptransport.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00
module.py Fix iot light effect brightness (#1092) 2024-07-31 15:58:48 +01:00
modulemapping.py Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
modulemapping.pyi Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
protocol.py Redact sensitive info from debug logs (#1069) 2024-07-17 19:57:09 +02:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00
smartprotocol.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00
xortransport.py Redact sensitive info from debug logs (#1069) 2024-07-17 19:57:09 +02:00