A tiny “greeting service” used as the default scan target for the Readiness Report demo. It is never executed by the scanner; Python files are only syntax-compiled.
| Check | Expected | Why |
|---|---|---|
readme_present |
pass | this file |
tests_present |
warn | no tests/ directory on purpose |
python_compiles |
fail | app.py has a deliberate syntax error (missing ) in greet) |
no_env_file |
pass | only .env.example (fake placeholders) is present |
dependency_manifest |
pass | requirements.txt |
hardcoded_secrets |
warn | app.py assigns a fake API key literal; the report shows it masked |
app.py, change def greet(name: str -> str: to def greet(name: str) -> str:.API_KEY = os.environ.get("DEMO_API_KEY", "").tests/test_app.py with a test for greet.python agent.py scan --target samples/demo_project and compare the reports.Use git checkout samples/demo_project to restore the imperfect version.