black_notes
This is an old revision of the document!
configure pycharm with black
File -> Settings -> Tools -> External Tools -> click on + sign -> Name = Black Description = Black in pycharm configuration Program: C:\ProgramData\Continuum\Anaconda\envs\[ENV_NAME]\Scripts\black.exe Arguments: $FilePath$ Working directory: $ProjectFileDir$
Ref:-
- https://godatadriven.com/blog/partial-python-code-formatting-with-black-pycharm/ - well explained; sed commands in script are mac specific; His script is a bit complex; See my script for simpler implementation that works in Windows 10 with git bash (i.e. GNU sed).
useful links
- https://black.now.sh/ - Black Playground; To try black online
- code repo - https://github.com/psf/black
black_notes.1611865516.txt.gz · Last modified: 2021/01/28 20:25 by raju