tAdd short script to format the python code. - obelisk - Electrum server using libbitcoin as its backend HTML git clone https://git.parazyd.org/obelisk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 64c6303c66afdeb7ae16f5de5166d7de1c5c0d96 DIR parent 5f7d76fd2abc25ea5f38790090d53dbbfec24343 HTML Author: parazyd <parazyd@dyne.org> Date: Tue, 13 Apr 2021 16:15:56 +0200 Add short script to format the python code. Diffstat: A res/format_code.py | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) --- DIR diff --git a/res/format_code.py b/res/format_code.py t@@ -0,0 +1,8 @@ +#!/usr/bin/env python3 +# Run this from the repo root to format the python codebase. +# Depends: +# black - https://github.com/psf/black +# yapf - https://github.com/google/yapf +from subprocess import run +run(["black", "-l", "80", "."]) +run(["yapf", "-i", "-r", "."])