Three private tiles in the codeflash workspace: - codeflash-rules: 6 steering rules (code-style, architecture, optimization-patterns, git-conventions, testing-rules, language-rules) - codeflash-docs: 7 doc pages (domain-types, optimization-pipeline, context-extraction, verification, ai-service, configuration) - codeflash-skills: 2 skills (debug-optimization-failure, add-codeflash-feature)
802 B
802 B
Code Style
- Line length: 120 characters
- Python: 3.9+ syntax (use
from __future__ import annotationsfor type hints) - Package management: Always use
uv, neverpip— run commands viauv run - Tooling: Ruff for linting/formatting, mypy strict mode, prek for pre-commit checks (
uv run prek run) - Comments: Minimal — only explain "why", not "what"
- Docstrings: Do not add unless explicitly requested
- Naming: NEVER use leading underscores (
_function_name) — Python has no true private functions, use public names - Paths: Always use absolute
Pathobjects, handle encoding explicitly (UTF-8) - Source transforms: Use
libcstfor code modification/transformation to preserve formatting;astis acceptable for read-only analysis and parsing