Skip to content

Commit

Permalink
install and apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmehl committed Jun 14, 2024
1 parent a399e7c commit 5a77bd1
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 4 deletions.
84 changes: 83 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ tonuino-cover-converter = 'tonuino_cards_manager.cover:main'
types-qrcode = "^7.4.0.20240408"
pylint = "^3.2.3"
mypy = "^1.10.0"
black = "^24.4.2"

[build-system]
requires = ["poetry-core"]
Expand Down
4 changes: 1 addition & 3 deletions tonuino_cards_manager/_qrcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ def generate_qr_codes(qrdata: list[str]):
print("")
# Make each QR code contain max. 4 elements
maxelem = 4
for idx, qrlist in enumerate(
[qrdata[x : x + maxelem] for x in range(0, len(qrdata), maxelem)]
):
for idx, qrlist in enumerate([qrdata[x : x + maxelem] for x in range(0, len(qrdata), maxelem)]):
qrc = QRCode()
qrc.add_data("\n".join(qrlist))
print(
Expand Down

0 comments on commit 5a77bd1

Please sign in to comment.