svalinn / parastell

Parametric 3-D CAD modeling toolset for stellarator fusion devices
MIT License
27 stars 12 forks source link

Black autoformatting #135

Closed Edgar-21 closed 3 months ago

Edgar-21 commented 3 months ago

Two things.

  1. black --line-length 79 . was run to format all python files with black, and with a line length of 79 characters, per PEP8. Black by default uses 88.
  2. An action that checks that code has been formatted such that applying black --line-length 79 . does not result in any changes has been added. It runs on pushes, PRs, and manaully.

When/if a pyproject.toml is authored it should include black args, and the action should be updated to reference pyproject.toml, rather than including the necessary args in the yaml file.