From e9a69788d6ffd390ffc5daffa90467dce6b385cd Mon Sep 17 00:00:00 2001 From: Jan Domanski Date: Sun, 2 Jun 2024 21:17:44 +0200 Subject: [PATCH 1/2] fix: broken isort --- qreader.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/qreader.py b/qreader.py index 0978096..6b45500 100644 --- a/qreader.py +++ b/qreader.py @@ -20,17 +20,8 @@ import numpy as np from pyzbar.pyzbar import Decoded, ZBarSymbol from pyzbar.pyzbar import decode as decodeQR -from qrdet import ( - BBOX_XYXY, - CONFIDENCE, - CXCY, - PADDED_QUAD_XY, - POLYGON_XY, - QUAD_XY, - WH, - QRDetector, - crop_qr, -) +from qrdet import (BBOX_XYXY, CONFIDENCE, CXCY, PADDED_QUAD_XY, POLYGON_XY, + QUAD_XY, WH, QRDetector, crop_qr) _SHARPEN_KERNEL = np.array( ((-1.0, -1.0, -1.0), (-1.0, 9.0, -1.0), (-1.0, -1.0, -1.0)), dtype=np.float32 From ece7a1c66bb07c1ad882306c4406befe410cd865 Mon Sep 17 00:00:00 2001 From: Jan Domanski Date: Sun, 2 Jun 2024 21:35:57 +0200 Subject: [PATCH 2/2] =?UTF-8?q?fix-the-fix=20=E2=80=93=20isort=20needs=20t?= =?UTF-8?q?he=20black=20profile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint.yml | 2 +- qreader.py | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f2b97a2..439eccc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,4 +40,4 @@ jobs: pip install black isort - name: Run isort run: |- - isort --check-only . + isort --check-only --profile black . diff --git a/qreader.py b/qreader.py index 6b45500..0978096 100644 --- a/qreader.py +++ b/qreader.py @@ -20,8 +20,17 @@ import numpy as np from pyzbar.pyzbar import Decoded, ZBarSymbol from pyzbar.pyzbar import decode as decodeQR -from qrdet import (BBOX_XYXY, CONFIDENCE, CXCY, PADDED_QUAD_XY, POLYGON_XY, - QUAD_XY, WH, QRDetector, crop_qr) +from qrdet import ( + BBOX_XYXY, + CONFIDENCE, + CXCY, + PADDED_QUAD_XY, + POLYGON_XY, + QUAD_XY, + WH, + QRDetector, + crop_qr, +) _SHARPEN_KERNEL = np.array( ((-1.0, -1.0, -1.0), (-1.0, 9.0, -1.0), (-1.0, -1.0, -1.0)), dtype=np.float32