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

Follow the XDG base directory specification for the .virtual_documents folder #1049

Open
GergelyKalmar opened this issue Feb 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@GergelyKalmar
Copy link

Elevator Pitch

The .virtual_documents folders should be created in the appropriate XDG base directory (either XDG_STATE_HOME or XDG_CACHE_HOME) instead of in the local folder.

Motivation

This is similar to the Python PYTHONPYCACHEPREFIX, which allows us to move all cache files out of our project tree structure, which can speed up test collection and other matters. It also makes cleaning up the cache easier and helps avoiding checking in these files accidentally into version control.

Design Ideas

Perhaps there is a workaround that could be implemented via virtual_documents_dir in a Python configuration, nonetheless, it would be great if this was supported out-of-the-box.

@krassowski krassowski added the enhancement New feature or request label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants