-
Notifications
You must be signed in to change notification settings - Fork 6
PZero code style & formatting
Andrea Bistacchi edited this page Jun 11, 2024
·
1 revision
PZero code is developed with PyCharm and automatically formatted with Black. To install the Black Plugin in the pzero conda environment and in PyCharm follow these instructions.
First install black in the conda environment
conda activate pzero
conda install blackd
Then install the BlackConnect Plugin in PyCharm with File > Settings > Plugins > search "black connect" > Install.

Then edited BlackConnect settings from File > Settings > Tools > BlackConnect as follows:

Now you can find BlackConnect under Tools:

You can use it to either reformat a selected section or all code in a file.