ruff/docs
Aarni Koskela 7dabc4598b
Allow RUFF_NO_CACHE environment variable (like RUFF_CACHE_DIR) (#8538)
## 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.
2023-11-07 08:35:28 -06:00
..
.overrides/partials/integrations/analytics Move some MkDocs responsibilities around (#5542) 2023-07-05 22:06:01 +00:00
assets Update docs to match updated logo and color palette (#5283) 2023-06-22 11:19:34 -04:00
formatter Avoid introducing new parentheses in annotated assignments (#8233) 2023-10-25 22:51:50 -04:00
stylesheets Render full-width tables in rules reference (#5636) 2023-07-10 02:39:07 +00:00
.gitignore Fix gitignore to not ignore files that are required (#7538) 2023-09-21 21:33:09 +02:00
configuration.md Allow RUFF_NO_CACHE environment variable (like RUFF_CACHE_DIR) (#8538) 2023-11-07 08:35:28 -06:00
faq.md docs: Add missing toml config tabs (#8512) 2023-11-06 21:12:38 +00:00
formatter.md Added tabs for configuration files in the documentation (#8480) 2023-11-05 17:10:29 +00:00
installation.md Rework the documentation to incorporate the Ruff formatter (#7732) 2023-10-20 23:08:26 +00:00
integrations.md Add instructions for configuration of Emacs (#8488) 2023-11-05 17:15:59 +00:00
linter.md Added tabs for configuration files in the documentation (#8480) 2023-11-05 17:10:29 +00:00
preview.md Added tabs for configuration files in the documentation (#8480) 2023-11-05 17:10:29 +00:00
requirements-insiders.txt Upgrade PyYAML to 6.0.1 to avoid build error (#8460) 2023-11-03 10:41:30 +05:30
requirements.txt Upgrade PyYAML to 6.0.1 to avoid build error (#8460) 2023-11-03 10:41:30 +05:30
tutorial.md Added tabs for configuration files in the documentation (#8480) 2023-11-05 17:10:29 +00:00
versioning.md Add note about scope of rule changing in versioning policy (#8169) 2023-10-24 11:38:31 -05:00