User Tools

Site Tools


black_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
black_notes [2021/01/28 21:51] – [configure pycharm with black] rajublack_notes [2022/02/18 22:45] (current) – [do not convert single quotes to double quotes] raju
Line 1: Line 1:
-==== configure pycharm with black ====+==== configure pycharm to format code with black ====
 To run black on the entire file To run black on the entire file
 <code> <code>
Line 35: Line 35:
   * https://godatadriven.com/blog/partial-python-code-formatting-with-black-pycharm/ - well explained; His script is a bit complex and the sed commands are mac specific.   * https://godatadriven.com/blog/partial-python-code-formatting-with-black-pycharm/ - well explained; His script is a bit complex and the sed commands are mac specific.
   * https://www.jetbrains.com/help/pycharm/configuring-third-party-tools.html   * https://www.jetbrains.com/help/pycharm/configuring-third-party-tools.html
 +
 +
 +==== do not convert single quotes to double quotes ====
 +pass ''%%--skip-string-normalization%%'' on the command line.
 +
 +Ref:-
 +  * https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#strings - this option is meant as an adoption helper, avoid using it for new projects.
 +
  
  
black_notes.1611870683.txt.gz · Last modified: 2021/01/28 21:51 by raju