Hello, As a discussion we had in Hackathon today, we concluded there is a need for guideline for our codes (something like WP:MoS for codes)
there is already thishttps://www.mediawiki.org/wiki/Manual:Coding_conventions/Pythonbut it's not for us and we can use it though
Some things I suggest to add to the guideline in the future: 1- Don't use commented out codes 2- use "bot" instead of "robot" in naming and documentation 3- Don't use \t (tab character) in codes
What do you think about this? if you agree I'll start
Best
Le 09/05/2014 19:44, Amir Ladsgroup a écrit :
Hello, As a discussion we had in Hackathon today, we concluded there is a need for guideline for our codes (something like WP:MoS for codes)
there is already this https://www.mediawiki.org/wiki/Manual:Coding_conventions/Python but it's not for us and we can use it though
Some things I suggest to add to the guideline in the future: 1- Don't use commented out codes 2- use "bot" instead of "robot" in naming and documentation 3- Don't use \t (tab character) in codes
What do you think about this? if you agree I'll start
Sounds a good start. People can use the flake8 python utility which reports a wide variety of code mistakes and styling issues.
pywikipedia-l@lists.wikimedia.org