mirror of
https://github.com/guillaumemeyer/watermarks-remover.git
synced 2026-08-22 13:11:57 +02:00
Add Makefile, pytest.ini, synthetic fixtures (MD/HTML/SVG), PDF degraded clean test, and make smoke/test targets so the multi-vendor plan is fully closed.
27 lines
1.1 KiB
Makefile
27 lines
1.1 KiB
Makefile
.PHONY: test smoke install-skill clean
|
|
|
|
SCRIPTS := skills/remove-ai-marks/scripts
|
|
PYTHON ?= $(shell if [ -x .venv/bin/python ]; then echo .venv/bin/python; else echo python3; fi)
|
|
|
|
test:
|
|
$(PYTHON) -m pytest
|
|
|
|
smoke:
|
|
-python3 $(SCRIPTS)/inspect_text.py tests/fixtures/sample_watermarked.txt
|
|
python3 $(SCRIPTS)/clean_text.py tests/fixtures/sample_watermarked.txt -o /tmp/wm.cleaned.txt --stats
|
|
python3 $(SCRIPTS)/rewrite_text.py tests/fixtures/sample_watermarked.txt --backend print-prompt >/dev/null
|
|
-python3 $(SCRIPTS)/inspect_file.py tests/fixtures/sample_ai.md
|
|
python3 $(SCRIPTS)/clean_file.py tests/fixtures/sample_ai.md -o /tmp/sample_ai.cleaned.md
|
|
python3 $(SCRIPTS)/clean_file.py tests/fixtures/sample_ai.html -o /tmp/sample_ai.cleaned.html
|
|
python3 $(SCRIPTS)/clean_file.py tests/fixtures/sample_meta.svg -o /tmp/sample_meta.cleaned.svg
|
|
@echo "smoke ok"
|
|
|
|
install-skill:
|
|
mkdir -p $(HOME)/.grok/skills
|
|
ln -sfn $(CURDIR)/skills/remove-ai-marks $(HOME)/.grok/skills/remove-ai-marks
|
|
@echo "linked -> $(HOME)/.grok/skills/remove-ai-marks"
|
|
|
|
clean:
|
|
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
|
|
rm -rf .pytest_cache .venv
|