Open JulianTrommer opened 1 month ago
ChatGPT
There are several popular code formatters for Python, each with its own strengths. The "best" one depends on your specific needs and preferences. Here are some of the most widely used auto-formatters for Python 3:
https://github.com/psf/black 38k Stars
black your_code.py
https://github.com/hhatto/autopep8 5k Stars
autopep8 --in-place your_code.py
https://github.com/google/yapf 14k stars
yapf -i your_code.py
isort your_code.py
docformatter your_code.py
Many developers use Black in combination with isort for import sorting and sometimes docformatter for docstring consistency.
We decided to use black as a code formatter. We also intend to add a GitHub action to check if the submitted code is different from the output of black. This action should be required to pass for merging.
Since the actions and their settings will be changed in this issue we also intend to separate the build and drive action for a better structure.
This also includes removing the log from the wget
command inside the build
action for better readability.
Description
No response
Definition of Done
No response