From bce64c11185b2c8ed6c6983a3f899bb2ea766f94 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 26 Dec 2021 15:31:38 +0100 Subject: [PATCH] bin: run black --- bin/i3-companion | 4 +--- bin/weather | 2 +- bin/xsecurelock-saver | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/i3-companion b/bin/i3-companion index 3fa3f30..5d87143 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -880,9 +880,7 @@ async def network_manager_notifications(i3, event, path, state, reason): interface="org.freedesktop.DBus.Properties", member="PropertiesChanged", signature="sa{sv}as", - onlyif=lambda args: ( - args[0] == "org.freedesktop.NetworkManager.AccessPoint" - ), + onlyif=lambda args: (args[0] == "org.freedesktop.NetworkManager.AccessPoint"), ), ) @retry(2) diff --git a/bin/weather b/bin/weather index 61ca028..02b803f 100755 --- a/bin/weather +++ b/bin/weather @@ -177,7 +177,7 @@ if __name__ == "__main__": round(weather["daily"][0]["temp"]["max"]), ), ] - city = city.replace('%', '%%') + city = city.replace("%", "%%") conditions.insert(0, f"%{{F#888}}%{{Tx}}%{{T-}} {city}%{{F-}}") output = " ".join(conditions).replace("%{Tx}", "%%{T%d}" % options.font_index) logger.debug("output: %s", output) diff --git a/bin/xsecurelock-saver b/bin/xsecurelock-saver index 1100205..5bd92ae 100755 --- a/bin/xsecurelock-saver +++ b/bin/xsecurelock-saver @@ -74,7 +74,7 @@ def on_overlay_draw(widget, cctx, ctx): def draw(what): x, y = cctx.get_current_point() cctx.set_source_rgba(0, 0, 0, 0.3) - cctx.move_to(x+2, y+2) + cctx.move_to(x + 2, y + 2) cctx.show_text(what) cctx.set_source_rgb(1, 1, 1) cctx.move_to(x, y)