Blog About Book Adventure

uv

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.May 06, 2026

How to teach Gemini CLI to write Python scripts with inline dependencies

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.July 11, 2025

Explore topics

Gemini CLI 9 Python 6 Cloud Run 12 Data Visualization 3 Gemini 3 LangChain 3 RAG 3

Recent posts

Building rebaseable container images with Docker from scratch

A hands-on look at how rebaseable container images are structured on Cloud Run, using Docker and FROM scratch.October 23, 2026

Cutting context window pollution with silent test runners

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.October 22, 2026

Preventing port conflicts in Git worktrees using directory hashing

Deterministic directory hashing calculates unique local port numbers from absolute filesystem paths, preventing port collisions in Git worktrees without manual configuration.October 14, 2026

RSS Feed | Archive