Add YAPF style + ignore, and format tracked Python files
This commit is contained in:
@@ -29,17 +29,21 @@ class PipelinePreset:
|
||||
PIPELINE_PRESETS: List[PipelinePreset] = [
|
||||
PipelinePreset(
|
||||
label="Download → Merge → Local",
|
||||
description="Use download-media with playlist auto-selection, merge the pieces, tag, then import into local storage.",
|
||||
pipeline='download-media "<url>" | merge-file | add-tags -store local | add-file -storage local',
|
||||
description=
|
||||
"Use download-media with playlist auto-selection, merge the pieces, tag, then import into local storage.",
|
||||
pipeline=
|
||||
'download-media "<url>" | merge-file | add-tags -store local | add-file -storage local',
|
||||
),
|
||||
PipelinePreset(
|
||||
label="Download → Hydrus",
|
||||
description="Fetch media, auto-tag, and push directly into Hydrus.",
|
||||
pipeline='download-media "<url>" | merge-file | add-tags -store hydrus | add-file -storage hydrus',
|
||||
pipeline=
|
||||
'download-media "<url>" | merge-file | add-tags -store hydrus | add-file -storage hydrus',
|
||||
),
|
||||
PipelinePreset(
|
||||
label="Search Local Library",
|
||||
description="Run search-file against the local library and emit a result table for further piping.",
|
||||
description=
|
||||
"Run search-file against the local library and emit a result table for further piping.",
|
||||
pipeline='search-file -library local -query "<keywords>"',
|
||||
),
|
||||
]
|
||||
@@ -57,7 +61,8 @@ def load_tags(file_path: Path) -> List[str]:
|
||||
def group_tags_by_namespace(tags: Sequence[str]) -> Dict[str, List[str]]:
|
||||
"""Return tags grouped by namespace for quick UI summaries."""
|
||||
|
||||
grouped: Dict[str, List[str]] = {}
|
||||
grouped: Dict[str,
|
||||
List[str]] = {}
|
||||
for tag in metadata.normalize_tags(list(tags)):
|
||||
namespace, value = metadata.split_tag(tag)
|
||||
key = namespace or "_untagged"
|
||||
|
||||
Reference in New Issue
Block a user