Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/psf/black
/ get_cache_file
Function
get_cache_file
src/black/cache.py:51–52 ·
view source on GitHub ↗
(mode: Mode)
Source
from the content-addressed store, hash-verified
49
50
51
def
get_cache_file(mode: Mode) -> Path:
52
return
CACHE_DIR / f
"cache.{mode.get_cache_key()}.pickle"
53
54
55
@dataclass
Callers
6
test_cache_file_length
Method · 0.90
test_cache_file_path_ignores_python_cell_magic_separators
Method · 0.90
test_cache_broken_file
Method · 0.90
test_no_cache_when_writeback_diff
Method · 0.90
test_no_cache_when_stdin
Method · 0.90
read
Method · 0.85
Calls
1
get_cache_key
Method · 0.80
Tested by
5
test_cache_file_length
Method · 0.72
test_cache_file_path_ignores_python_cell_magic_separators
Method · 0.72
test_cache_broken_file
Method · 0.72
test_no_cache_when_writeback_diff
Method · 0.72
test_no_cache_when_stdin
Method · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…