Auto-formatting Python with Ruff in Gemini CLI
Learn how to set up a hook in Gemini CLI that uses Ruff to format and sort imports in your Python code every time it modifies a file.
Learn how to set up a hook in Gemini CLI that uses Ruff to format and sort imports in your Python code every time it modifies a file.
Teach Gemini CLI to write executable, single-file Python scripts with an inline
dependency block, a technique that lets you run scripts without having to run
pip install first.
A hands-on look at how rebaseable container images are structured on Cloud Run, using Docker and FROM scratch.
Dumping verbose test logs into an AI coding agent wastes context window space. Wrapping test commands in a silent Make macro suppresses noise on success while preserving full stack traces on failure.
Deterministic directory hashing calculates unique local port numbers from absolute filesystem paths, preventing port collisions in Git worktrees without manual configuration.