- test_feedback.py: 46 tests for FeedbackDB (add, rate, search, stats, export, delete) - test_server.py: 18 tests for post-processing (pixelate, bg removal, prompt building) - Fix _pixelate: handle pixel_size=0 without division by zero - Fix _remove_background: remove global magenta normalization that ate interior highlights Now uses single-pass flood-fill from edges, preserving interior bright pixels - Add pytest to .gitignore
39 lines
412 B
Plaintext
39 lines
412 B
Plaintext
# venv
|
|
venv/
|
|
.venv/
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
*.egg-info/
|
|
dist/
|
|
build/
|
|
|
|
# Output (generated sprites)
|
|
output/
|
|
|
|
# Feedback database
|
|
feedback.db
|
|
feedback_dataset.jsonl
|
|
|
|
# pytest
|
|
.pytest_cache/
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Models (not included — download separately)
|
|
models/
|
|
*.safetensors
|
|
*.bin
|
|
*.ckpt
|
|
|
|
# opencode local config (keep .opencode/opencode.json)
|
|
.opencode/session*
|