Currently blue binds exact version of black. It is not cool, we miss the possibility to update black.
If I understand right, it does it because a lot of things are hardcoded into black to make it look more uncompromising and deter runtime modification, so you just replace the methods with own ines, and to make sure they are consistent with the rest of black you bind the exact version.
So the proposal:
ast.parse the needed files of black
Modify the AST heuristically with the custom code. It can do things like replacing hardcoded literals.
exec
PROFIT
It should allow us to use the latest version of black.
Currently
blue
binds exact version ofblack
. It is not cool, we miss the possibility to updateblack
.If I understand right, it does it because a lot of things are hardcoded into
black
to make it look more uncompromising and deter runtime modification, so you just replace the methods with own ines, and to make sure they are consistent with the rest ofblack
you bind the exact version.So the proposal:
ast.parse
the needed files ofblack
exec
It should allow us to use the latest version of
black
.