Skip to content

Commit 3188573

Browse files
author
ponty
committed
format code
1 parent e723f34 commit 3188573

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

format-code.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -e
3+
autoflake -i -r --remove-all-unused-imports .
4+
autoflake -i -r --remove-unused-variables .
5+
isort --recursive .
6+
black .

gradient.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
@entrypoint
1313
def gradient(width=320, height=240, colorbit=32, fileout="/dev/fb0"):
14-
"""colorbit: 8/16/24/32
15-
"""
14+
"""colorbit: 8/16/24/32"""
1615
assert colorbit in chan
1716
with open(fileout, "wb") as f:
1817
for y in range(0, height):

vfb.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
import vagrant
1+
import os
2+
import sys
3+
from time import sleep
4+
25
import fabric
6+
import vagrant
7+
from entrypoint2 import entrypoint
38

49
# from fabric.api import env, execute, task, run, sudo, settings
510
from vncdotool import api
6-
from entrypoint2 import entrypoint
7-
import os
8-
from time import sleep
911

1012
# pip3 install fabric vncdotool python-vagrant entrypoint2
1113

12-
import sys
1314

1415
print(sys.version)
1516

@@ -78,7 +79,10 @@ def main():
7879
v = vagrant.Vagrant()
7980
v.up()
8081
with fabric.Connection(
81-
v.user_hostname_port(), connect_kwargs={"key_filename": v.keyfile(),},
82+
v.user_hostname_port(),
83+
connect_kwargs={
84+
"key_filename": v.keyfile(),
85+
},
8286
) as conn:
8387
build(conn)
8488
for rot in [90, 180, 270]:

0 commit comments

Comments
 (0)