From b3bf710f5944d93da6a7921494b9c22c46cfd56a Mon Sep 17 00:00:00 2001 From: Dan Simpson Date: Tue, 20 Aug 2024 12:32:51 +1000 Subject: [PATCH 1/2] Add missing docstrings and order imports --- tests/linkplay/test_bridge.py | 2 ++ tests/linkplay/test_consts.py | 3 +++ tests/linkplay/test_endpoint.py | 3 +++ tests/linkplay/test_utils.py | 2 ++ 4 files changed, 10 insertions(+) diff --git a/tests/linkplay/test_bridge.py b/tests/linkplay/test_bridge.py index 9962782..a2d4d85 100644 --- a/tests/linkplay/test_bridge.py +++ b/tests/linkplay/test_bridge.py @@ -1,3 +1,5 @@ +"""Test bridge functionality.""" + from unittest.mock import AsyncMock from linkplay.bridge import ( diff --git a/tests/linkplay/test_consts.py b/tests/linkplay/test_consts.py index 0b16673..5723cfe 100644 --- a/tests/linkplay/test_consts.py +++ b/tests/linkplay/test_consts.py @@ -1,4 +1,7 @@ +"""Test consts.""" + import pytest + from linkplay.consts import INPUT_MODE_MAP, PLAY_MODE_SEND_MAP, InputMode, PlayingMode diff --git a/tests/linkplay/test_endpoint.py b/tests/linkplay/test_endpoint.py index 6144e24..bba7e29 100644 --- a/tests/linkplay/test_endpoint.py +++ b/tests/linkplay/test_endpoint.py @@ -1,4 +1,7 @@ +"""Test endpoint functionality.""" + import pytest + from linkplay.endpoint import LinkPlayApiEndpoint diff --git a/tests/linkplay/test_utils.py b/tests/linkplay/test_utils.py index 3c31dc9..3fdac88 100644 --- a/tests/linkplay/test_utils.py +++ b/tests/linkplay/test_utils.py @@ -1,3 +1,5 @@ +"""Test utility functions.""" + from linkplay.utils import decode_hexstr From 5c394cb64fe7556c075e9c122ee61589bb127331 Mon Sep 17 00:00:00 2001 From: Dan Simpson Date: Tue, 20 Aug 2024 12:34:55 +1000 Subject: [PATCH 2/2] ruff linting --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 26e08e4..7f1a176 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ from setuptools import setup - if __name__ == "__main__": setup()