Replies: 2 comments 1 reply
-
|
I started to use flake8 https://flake8.pycqa.org/en/latest/ |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Ok that is nice. I will have a look at flake8 ;) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to draw attention on code formatting. I think the code of PyMoDAQ would gain a lot of readability by using a common code formatting.
I discovered recently a tool called Black that do the job automatically ! https://dev.to/mblayman/consistent-python-code-with-black-4c87
As I understand it is not as stringent as PEP8. For example the default maximum line length is 88 characters.
I tested that it is very easy to install directly as a plugin of an IDE like PyCharm https://black.readthedocs.io/en/stable/editor_integration.html You can even configure that Black reshape the code each time you save a file.
I do not know if Black is the most commonly used tool for code formatting amoung the python community so maybe another choice would be better. But I think a project like PyMoDAQ should make a choice on that matter to prevent (boring ?) discussions about code formatting in the future ;)
Beta Was this translation helpful? Give feedback.
All reactions