Skip to content

feat(cache): support custom_cache_dir parameter in get_cache_dir and get_cache_file - #5268

Open
amir-rezaei wants to merge 1 commit into
psf:mainfrom
amir-rezaei:feat/cache-get-cache-dir-custom-path
Open

feat(cache): support custom_cache_dir parameter in get_cache_dir and get_cache_file#5268
amir-rezaei wants to merge 1 commit into
psf:mainfrom
amir-rezaei:feat/cache-get-cache-dir-custom-path

Conversation

@amir-rezaei

@amir-rezaei amir-rezaei commented Jul 28, 2026

Copy link
Copy Markdown

Description

This PR resolves issue #5174 by adding a custom_cache_dir parameter to get_cache_dir() and get_cache_file() in src/black/cache.py. Fixes #5175, closes #5201

Details

  • Allows programmatic callers and tools to specify custom cache directory locations directly.

@cobaltt7

Copy link
Copy Markdown
Collaborator

@amir-rezaei This does not add a --cache-dir argument as requested in #5174.

@github-actions

Copy link
Copy Markdown
Contributor

diff-shades results comparing this PR (655f04e) to main (ba7debf):

--preview style: no changes

--stable style: no changes


What is this? | Workflow run | diff-shades documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants