DavidBergevoet / Setup-Reservation

0 stars 0 forks source link

Coding style #30

Open InzeNL opened 5 months ago

InzeNL commented 5 months 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 4 months 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 4 months ago

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

Is this something to use?

InzeNL commented 4 months ago

https://github.com/m-burst/flake8-pytest-style