Commit bc7a4b23 authored by Yngve Høiseth's avatar Yngve Høiseth Committed by Zsolt Dollenstein
Browse files

Document cache location configuration (#866)

parent 340d87b4
Loading
Loading
Loading
Loading
+4 −0
Changes for README.md: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -933,6 +933,10 @@ is:
`file-mode` is an int flag that determines whether the file was formatted as 3.6+ only,
as .pyi, and whether string normalization was omitted.

To override the location of these files on macOS or Linux, set the environment variable
`XDG_CACHE_HOME` to your preferred location. For example, if you want to put the cache in
the directory you're running *Black* from, set `XDG_CACHE_HOME=.cache`. *Black* will then
write the above files to `.cache/black/<version>/`.

## Used by