Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support device selection, migrate CLI to Typer #12

Merged
merged 46 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
3b07f13
Remove superfluous __init__.py in src/
maresb Apr 21, 2024
80bb84b
Configure mypy path and packages
maresb Apr 21, 2024
fa6cacc
Hide internal fields
Apr 18, 2024
a0e6cd7
Initialize class attribute
Apr 18, 2024
8125f3f
Extract settings controls to a separate widget
Apr 18, 2024
574c0af
Organize imports
Apr 18, 2024
b9302b7
Extract actions controls to a separate widget
Apr 18, 2024
d69d841
Remove unneeded layout complexity
Apr 18, 2024
b5bf6e7
Remove Dymo from name of classes
Apr 18, 2024
cb84b6d
Extract render control to a separate widget
Apr 18, 2024
b9131df
Keep render widget as class attribute
Apr 20, 2024
c5d875c
Add device selector widget
Apr 20, 2024
c80ca63
Separate OnlineDeviceManager manager from DeviceManager
Apr 20, 2024
714312b
Add support for future typing annotations
Apr 20, 2024
e708c2a
Fix device override
tomers Apr 21, 2024
03a75cd
Fix lint errors
tomers Apr 21, 2024
6950ea9
Ignore mypy errors from _vendor module
maresb Apr 21, 2024
75822c4
Add cffi type stubs to pre-commit
maresb Apr 21, 2024
05c5a4f
Fix CLI printing
Apr 25, 2024
06879d5
Fix mypy warnings
Apr 25, 2024
89c870f
Allow device matching in CLI
Apr 25, 2024
be6c5c5
Fix assertion error
Apr 25, 2024
e7c33dc
Fix failed tox tests
Apr 25, 2024
7b85fd8
Revet "Fix lint errors" commit
Apr 25, 2024
90dee00
Rename variable
Apr 25, 2024
e4fcec9
Rename constant
Apr 25, 2024
e2bfd2c
CLI improvements
Apr 25, 2024
94ff273
Update --device description
Apr 25, 2024
b3209ef
Fix GUI app not loading on Python 3.8
Apr 25, 2024
393febc
Convert BARCODE_TYPE from list to Enum
Apr 25, 2024
a55aef9
Use Enum for alignment options
Apr 25, 2024
1d1ce6e
Use Enum for justify options
Apr 25, 2024
b67aab7
CLI overhaul - use typer
Apr 25, 2024
b75f4f7
Add list-devices command
Apr 25, 2024
d684b0c
Prevent stacktrace from being shown in case of no devices
Apr 26, 2024
b97914d
Change default barcode type to code128
Apr 26, 2024
0e38a93
Fix typo
Apr 26, 2024
382955a
Make enum keys uppercase
Apr 26, 2024
db6374e
Fix imagemagick output
Apr 26, 2024
0c62568
Extract output handling to a separate file
Apr 26, 2024
05e6d71
Move Style to font_config as FontStyle
Apr 26, 2024
70476fd
Split options in diffent panels in documentation
Apr 26, 2024
db60a61
Update barcode types
Apr 26, 2024
c767a0a
Make text option an argument instead of an option
Apr 26, 2024
7ecd67b
Unify Align and Justify enums to Directions enum
Apr 26, 2024
935aeaf
Hide list_devices command
Apr 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ repos:
- id: mypy
additional_dependencies:
- types-pillow
- types-cffi

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
Expand Down
23 changes: 15 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies = [
"pyusb",
"PyQt6",
"darkdetect",
"typer",
]
classifiers = [
"Operating System :: POSIX :: Linux",
Expand Down Expand Up @@ -82,13 +83,14 @@ commands =
pip freeze
labelle --version
labelle --help
labelle --preview "single line"
labelle --preview-inverted "single line"
labelle --preview multiple lines
labelle --preview -qr "qr text"
labelle --preview -c code128 "bc txt"
labelle --preview -qr "qr text" qr caption
labelle --preview -c code128 "bc txt" barcode caption
labelle --output console "single line"
labelle --output console_inverted "inverted"
labelle --output console multiple lines
labelle --output console --barcode "Barcode" --barcode-type code128
labelle --output console --barcode-with-text "Barcode" --barcode-type code128 Caption
labelle --output console --qr QR
labelle --output console --qr QR Caption
labelle --output console --picture ./labelle.png

[testenv:{clean,build}]
description =
Expand Down Expand Up @@ -191,6 +193,11 @@ ignore = [
]

[tool.mypy]
exclude = ["_vendor"]
check_untyped_defs = true
install_types = true
mypy_path = "src/"
packages = ["labelle"]

[[tool.mypy.overrides]]
module="labelle._vendor.*"
ignore_errors = true
Empty file removed src/__init__.py
Empty file.
Loading