Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Disable cache from pyproject.toml #15151

Open
orlandodiaz opened this issue Dec 26, 2024 · 1 comment
Open

Feature: Disable cache from pyproject.toml #15151

orlandodiaz opened this issue Dec 26, 2024 · 1 comment
Labels
cache Related to Ruff cache question Asking for support or clarification

Comments

@orlandodiaz
Copy link

We have can pass --no-cache via the CLI to disable cache. Do we not have a setting to do this in the pyproject.toml?

A simple setting like this would be nice. Ruff is fast enough for me that cache only brings problems and adds a bunch of .ruff_cache folders everywhere. I prefer to keep it disabled

[tool.ruff]
cache = false

@MichaReiser
Copy link
Member

There is no built-in way to disable the cache. However, on Unix, you can set cache-dir = "/dev/null". You can also set cache-dir="some/shared/directory/.ruff-cache` to use a shared directory between project, to reduce the "cache folders everywhere"

cache only brings problems and

Can you tell me more about the problems you run into with caching? It would be great if we can fix those.

@MichaReiser MichaReiser added the question Asking for support or clarification label Dec 26, 2024
@dhruvmanila dhruvmanila added the cache Related to Ruff cache label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cache Related to Ruff cache question Asking for support or clarification
Projects
None yet
Development

No branches or pull requests

3 participants