diff --git a/.claude/rules/code-style.md b/.claude/rules/code-style.md index 6a2daef87..ced40a1a7 100644 --- a/.claude/rules/code-style.md +++ b/.claude/rules/code-style.md @@ -9,3 +9,4 @@ - **Naming**: NEVER use leading underscores (`_function_name`) - Python has no true private functions, use public names - **Paths**: Always use absolute paths - **Encoding**: Always pass `encoding="utf-8"` to `open()`, `read_text()`, `write_text()`, etc. in new or changed code — Windows defaults to `cp1252` which breaks on non-ASCII content. Don't flag pre-existing code that lacks it unless you're already modifying that line. +- **Pre-commit**: Run `uv run prek` before committing — fix any issues before creating the commit diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 4c4374b66..53aadeb03 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -192,12 +192,6 @@ jobs: *Last updated: * - - Run /simplify to review recently changed code for reuse, quality, and efficiency opportunities. - If improvements are found, commit with "refactor: simplify " and push. - Only make behavior-preserving changes. - - Check for open PRs from codeflash-ai[bot]: `gh pr list --author "codeflash-ai[bot]" --state open --json number,title,headRefName,createdAt,mergeable` @@ -219,7 +213,7 @@ jobs: - All findings are in a single summary comment (no inline review comments were created) - If fixes were made, they were verified with prek - claude_args: '--model us.anthropic.claude-sonnet-4-6 --max-turns 25 --allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh pr checks:*),Bash(gh pr merge:*),Bash(gh issue view:*),Bash(gh issue list:*),Bash(gh api:*),Bash(uv run prek *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(uv run pytest *),Bash(git status*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git diff *),Bash(git checkout *),Read,Glob,Grep,Edit,Skill"' + claude_args: '--model us.anthropic.claude-sonnet-4-6 --allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh pr checks:*),Bash(gh pr merge:*),Bash(gh issue view:*),Bash(gh issue list:*),Bash(gh api:*),Bash(uv run prek *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(uv run pytest *),Bash(git status*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git diff *),Bash(git checkout *),Read,Glob,Grep,Edit"' additional_permissions: | actions: read diff --git a/codeflash/languages/base.py b/codeflash/languages/base.py index a007e773a..32c0ae10c 100644 --- a/codeflash/languages/base.py +++ b/codeflash/languages/base.py @@ -313,7 +313,7 @@ def default_language_version(self) -> str | None: Returns None for languages where the runtime version is auto-detected (e.g. Python). Returns a version string (e.g. "ES2022") for languages that need an explicit default. """ - return None + ... @property def valid_test_frameworks(self) -> tuple[str, ...]: