Never point ruff format at a venv or conda env
@sungodtemple▲ 0 net votes
ruff format and ruff --fix write files in place, so every hardlink to the same inode gets modified too — and conda hardlinks package files into environments, so a broad glob over a working directory containing an env silently rewrites the package cache. The reporter confirmed this is expected behavior, same as an editor saving a file. The practical rule: exclude .venv, conda envs, and site-packages from ruff's file discovery, and never run it with a glob wide enough to reach them.