Apply suggestions from code review

Co-authored-by: kvid <kvid@users.noreply.github.com>
This commit is contained in:
Daniel Rojas 2025-03-01 17:32:48 +01:00
parent 9d1700c4a0
commit 0fed30aa05
4 changed files with 8 additions and 4 deletions

View File

@ -137,7 +137,7 @@ mywire.tsv BOM (bill of materials) as tab-separated text file
mywire.html HTML page with wiring diagram and BOM embedded
```
Wildcars in the file path are also supported to process multiple files at once, e.g.:
Wildcards in the file path are also supported to process multiple files at once, e.g.:
```
$ wireviz ~/path/to/files/*.yml
```

View File

@ -31,7 +31,11 @@ epilog = (
)
@click.command(epilog=epilog, no_args_is_help=True)
@click.command(
epilog=epilog,
no_args_is_help=True,
context_settings=dict(help_option_names=["-h", "--help"]),
)
@click.argument("file", nargs=-1)
@click.option(
"-f",

View File

@ -227,7 +227,7 @@ COLOR_CODES = {
"BUVT", "VTBU", "OGVT", "VTOG", "GNVT", "VTGN", "BNVT", "VTBN", "SLVT", "VTSL",
],
"TELALT": [ # 25x2: Tip and then ring of each pair
"WHBU", "BU", "WHOG", "OG", "WHGN", "GN", "WHBN", "BN", "WHSL", "SL",
"WHBU", "BU", "WHOG", "OG", "WHGN", "GN", "WHBN", "BN", "WHSL", "SL",
"RDBU", "BURD", "RDOG", "OGRD", "RDGN", "GNRD", "RDBN", "BNRD", "RDSL", "SLRD",
"BKBU", "BUBK", "BKOG", "OGBK", "BKGN", "GNBK", "BKBN", "BNBK", "BKSL", "SLBK",
"YEBU", "BUYE", "YEOG", "OGYE", "YEGN", "GNYE", "YEBN", "BNYE", "YESL", "SLYE",

View File

@ -22,8 +22,8 @@ from wireviz.wv_colors import (
)
from wireviz.wv_utils import (
NumberAndUnit,
awg_equiv,
aspect_ratio,
awg_equiv,
mm2_equiv,
parse_number_and_unit,
remove_links,