aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2025-03-28 16:01:30 -0500
committerAnthony Wang2025-03-28 16:01:30 -0500
commitf8753935ddfb00271c7ae07c2aa5932754a1bba7 (patch)
tree706aff8a8f8d01d51a19cf18d81d35c9b65d2d51
parent061b670b6e65affea1c0ab0fc2268c108346fdb5 (diff)
Use ruff for isortHEADmaster
-rw-r--r--README.md2
-rw-r--r--decoder.py3
-rw-r--r--encoder.py1
3 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index f7cc8cd..5671d86 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ Play video (SEIZURE WARNING): `mpv --scale=nearest --fullscreen --loop --no-keep
Copy the flags printed by the encoder and pass them to the decoder: `python decoder.py FLAGS`
-Formatting: `ruff format --line-length 120`
+Formatting: `ruff check --select I --fix && ruff format --line-length 120`
Use phone as webcam for higher quality video: `scrcpy --no-audio --v4l2-sink=/dev/video4 --video-source=camera --no-video-playback --camera-size 1920x1080 --camera-fps 60`
diff --git a/decoder.py b/decoder.py
index 86563ef..79130cf 100644
--- a/decoder.py
+++ b/decoder.py
@@ -1,7 +1,8 @@
import argparse
+import time
from multiprocessing.pool import Pool
from threading import Thread
-import time
+
import cv2
import numpy as np
from creedsolo import RSCodec
diff --git a/encoder.py b/encoder.py
index dd3b53c..faa474e 100644
--- a/encoder.py
+++ b/encoder.py
@@ -1,4 +1,5 @@
import argparse
+
import cv2
import numpy as np
from creedsolo import RSCodec