From 07759149d60acd3104183acbbf6f64ff00ec65d8 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Thu, 23 Jan 2020 12:46:18 +0000 Subject: [PATCH] Apply black reformatting suggestions --- mopidy_raspberry_gpio/pinconfig.py | 5 +++-- tests/test_frontend.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mopidy_raspberry_gpio/pinconfig.py b/mopidy_raspberry_gpio/pinconfig.py index f2d0a7f..f6c7270 100644 --- a/mopidy_raspberry_gpio/pinconfig.py +++ b/mopidy_raspberry_gpio/pinconfig.py @@ -1,4 +1,3 @@ - from collections import namedtuple from mopidy import config @@ -15,7 +14,9 @@ class ValidList(list): class PinConfig(config.ConfigValue): tuple_pinconfig = namedtuple("PinConfig", ("event", "active", "bouncetime")) - valid_events = ValidList(["play_pause", "prev", "next", "volume_up", "volume_down"]) + valid_events = ValidList( + ["play_pause", "prev", "next", "volume_up", "volume_down"] + ) valid_modes = ValidList(["active_low", "active_high"]) diff --git a/tests/test_frontend.py b/tests/test_frontend.py index 56607e9..427d4e6 100644 --- a/tests/test_frontend.py +++ b/tests/test_frontend.py @@ -13,7 +13,7 @@ dummy_config = { # Plugins expect settings to be deserialized "bcm1": deserialize("play_pause,active_low,30"), "bcm2": deserialize("volume_up,active_high,30"), - "bcm3": deserialize("volume_down,active_high,30") + "bcm3": deserialize("volume_down,active_high,30"), } }