chore: add Ruff and apply formatting across codebase
Introduce ruff lint/format config, expand .gitignore, and reformat Python sources. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5,7 +5,9 @@ from pathlib import Path
|
||||
|
||||
from imagepipeline import Pipeline
|
||||
|
||||
INPUT = Path("/home/frank/pics/20260620_Albershausen Crusaders - Montabaur Fighting Farmers/darktable_exported")
|
||||
INPUT = Path(
|
||||
"/home/frank/pics/20260620_Albershausen Crusaders - Montabaur Fighting Farmers/darktable_exported"
|
||||
)
|
||||
OUTPUT_BASE = Path.home() / "pipeline_output"
|
||||
|
||||
# Reuse outputs from a previous run or external folder (key = step id, e.g. rembg_01).
|
||||
@@ -80,13 +82,9 @@ def main() -> None:
|
||||
scale=1.05,
|
||||
)
|
||||
|
||||
rembg_stereo_alpha = p.step(
|
||||
"color_to_alpha", inputs=rembg_stereo, color="#000000"
|
||||
)
|
||||
rembg_stereo_alpha = p.step("color_to_alpha", inputs=rembg_stereo, color="#000000")
|
||||
color_bg = p.step("imagemagick_fill", inputs="input", color1=COLOR1)
|
||||
rembg_smooth_alpha = p.step(
|
||||
"color_to_alpha", inputs=rembg_jpr_smooth, color="#7f7f7f"
|
||||
)
|
||||
rembg_smooth_alpha = p.step("color_to_alpha", inputs=rembg_jpr_smooth, color="#7f7f7f")
|
||||
rembg_smooth_sized = p.step(
|
||||
"imagemagick_scale_crop",
|
||||
inputs=rembg_smooth_alpha,
|
||||
|
||||
Reference in New Issue
Block a user