mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-02 18:02:23 +00:00
![]() ## Summary Being able to set `--no-cache` without touching the command line makes comparing formatter speed with e.g. Hyperfine a lot easier; Black allows one to set `BLACK_CACHE_DIR=/dev/null`, but setting `RUFF_CACHE_DIR=/dev/null` has Ruff choke: ``` error: Failed to initialize cache at /dev/null: Not a directory (os error 20) error: Failed to initialize cache at /dev/null: Not a directory (os error 20) warning: Failed to open cache file '/dev/null/0.1.4/18160934645386409287': Not a directory (os error 20) ``` Alternately, we could make a `/dev/null` (or `nul` on Windows) cache directory imply `--no-cache`? ## Test Plan None yet. |
||
---|---|---|
.. | ||
.overrides/partials/integrations/analytics | ||
assets | ||
formatter | ||
stylesheets | ||
.gitignore | ||
configuration.md | ||
faq.md | ||
formatter.md | ||
installation.md | ||
integrations.md | ||
linter.md | ||
preview.md | ||
requirements-insiders.txt | ||
requirements.txt | ||
tutorial.md | ||
versioning.md |