Skip to content

Commit d18c36e

Browse files
authored
Merge pull request #12 from labelle-org/tshalev-device-selector
Support device selection, migrate CLI to Typer
2 parents 17c3dea + 935aeaf commit d18c36e

27 files changed

+989
-547
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ repos:
3737
- id: mypy
3838
additional_dependencies:
3939
- types-pillow
40+
- types-cffi
4041

4142
- repo: https://github.com/igorshubovych/markdownlint-cli
4243
rev: v0.39.0

pyproject.toml

+15-8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencies = [
2424
"pyusb",
2525
"PyQt6",
2626
"darkdetect",
27+
"typer",
2728
]
2829
classifiers = [
2930
"Operating System :: POSIX :: Linux",
@@ -82,13 +83,14 @@ commands =
8283
pip freeze
8384
labelle --version
8485
labelle --help
85-
labelle --preview "single line"
86-
labelle --preview-inverted "single line"
87-
labelle --preview multiple lines
88-
labelle --preview -qr "qr text"
89-
labelle --preview -c code128 "bc txt"
90-
labelle --preview -qr "qr text" qr caption
91-
labelle --preview -c code128 "bc txt" barcode caption
86+
labelle --output console "single line"
87+
labelle --output console_inverted "inverted"
88+
labelle --output console multiple lines
89+
labelle --output console --barcode "Barcode" --barcode-type code128
90+
labelle --output console --barcode-with-text "Barcode" --barcode-type code128 Caption
91+
labelle --output console --qr QR
92+
labelle --output console --qr QR Caption
93+
labelle --output console --picture ./labelle.png
9294
9395
[testenv:{clean,build}]
9496
description =
@@ -191,6 +193,11 @@ ignore = [
191193
]
192194

193195
[tool.mypy]
194-
exclude = ["_vendor"]
195196
check_untyped_defs = true
196197
install_types = true
198+
mypy_path = "src/"
199+
packages = ["labelle"]
200+
201+
[[tool.mypy.overrides]]
202+
module="labelle._vendor.*"
203+
ignore_errors = true

src/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)