What does this evidence check print?

from AI coding CLIs
Python 3.14 beginner 3 min

What does this evidence check print?

Python
checks = {
    "python3 -m pytest tests/test_profile.py": 0,
    "python3 -m ruff check src tests": 2,
}

required = (
    "python3 -m pytest tests/test_profile.py",
    "python3 -m ruff check src tests",
)
accepted = all(checks.get(command) == 0 for command in required)
print("ACCEPT" if accepted else "REJECT")
Open in playground
Report an error