Skip to content

🤖 chore: gitignore .ruff_cache dropped by make fmt#3698

Merged
ibetitsmike merged 1 commit into
mainfrom
mike/gitignore-ruff-cache
Jul 9, 2026
Merged

🤖 chore: gitignore .ruff_cache dropped by make fmt#3698
ibetitsmike merged 1 commit into
mainfrom
mike/gitignore-ruff-cache

Conversation

@ibetitsmike

Copy link
Copy Markdown
Contributor

Summary

Ignore .ruff_cache/, which make fmt / make fmt-check drop at the repo root, so workspace archiving stops prompting about lossy untracked files.

Background

fmt.mk runs uvx ruff format benchmarks as part of fmt-python(-check), which is included in make fmt, make fmt-check, and make static-check. Since the repo has no pyproject.toml/ruff.toml, ruff writes its cache to ./.ruff_cache/ (reproduced in a scratch dir).

The archive preflight (worktreeArchiveSnapshotService.listUnsupportedUntrackedFiles) lists untracked paths via git ls-files --others --exclude-standard --directory, so the cache dir triggers the "confirm lossy untracked files" dialog in practically every workspace that ran static checks. workspaceService.test.ts even uses .ruff_cache/ as its example untracked path.

Because the preflight uses --exclude-standard, gitignoring the directory removes it from the prompt immediately, including for existing workspaces. Kept ruff's cache (rather than --no-cache in fmt.mk) for incremental format speed.

Validation

  • Created a fake .ruff_cache/ and confirmed git check-ignore matches and git ls-files --others --exclude-standard --directory returns nothing.

Generated with mux • Model: anthropic:claude-fable-5 • Thinking: max • Cost: $2.61

@ibetitsmike

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 879c8dd026

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike ibetitsmike added this pull request to the merge queue Jul 8, 2026
Merged via the queue into main with commit 7d78415 Jul 9, 2026
22 checks passed
@ibetitsmike ibetitsmike deleted the mike/gitignore-ruff-cache branch July 9, 2026 00:00
@mux-bot mux-bot Bot mentioned this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant