Skip to content
Unverified Commit c0a7582e authored by Allan Simon's avatar Allan Simon Committed by GitHub
Browse files

permits black to run in AWS Lambda: (#1141)



AWS Lambda and some other virtualized environment may not permit access
to /dev/shm on Linux and as such, trying to use ProcessPoolExecutor will
fail.

As using parallelism is only a 'nice to have' feature of black, if it fails
we gracefully fallback to a monoprocess implementation, which permits black
to finish normally.

Co-authored-by: default avatarAllan Simon <asimon@yolaw.fr>
parent 26c9465a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment