Files
ai-agent-harness/sources/stacks/python.md

1.1 KiB

Python

  • Detect and preserve the repository's interpreter version, virtual environment, dependency mechanism, formatter, linter, type checker, and test runner.
  • Use the project-local environment. Do not install packages globally or alter unrelated environments.
  • Preserve the existing dependency-file strategy; do not broadly regenerate or reorder requirement files for a narrow change.
  • Preserve file encoding and line endings, especially in Korean source, prompts, fixtures, and documents.
  • Follow the repository's import, typing, Pydantic/model, exception, logging, and entry-point conventions.
  • Use explicit paths and encodings for file I/O, and clean up temporary resources deterministically.
  • Avoid broad exception handling unless it is an intentional application boundary with actionable diagnostics.
  • Keep credentials, tokens, model keys, and environment-specific endpoints out of source and committed configuration.
  • Use sanitized, minimal fixtures instead of production survey, receipt, transcript, customer, or internal documents.
  • Run the narrowest relevant pytest, lint, type-check, and application smoke checks available in the repository.