DavidBergevoet / Setup-Reservation

0 stars 1 forks source link

Coding style #30

Open InzeNL opened 1 week ago

InzeNL commented 1 week ago

We should define standards and enforce them using Github actions. There is pylint that can help with this. Editorconfig also comes to mind, though there doesn't seem to be an amazing way to enforce this one.

DavidBergevoet commented 5 days ago

You can use autopep8 to beautify python code to the pep8 standard. You can also use this in a github action to check if all the code is conform pep8 and otherwise fail the action. Add a section in the README.md with a tutorial on how to format the code with autopep8

InzeNL commented 18 hours ago

https://pypi.org/project/autoflake/ https://pypi.org/project/autoflake8/0.3.1/

Is this something to use?