这段证据检查会输出什么?

来自 AI 编程 CLI
Python 3.14 入门 3分钟

这段证据检查会输出什么?

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")
在试验场中打开
报告错误