Documents numériques associés
PEP8 :
Les paroles
You don’t need any curly braces
just four spaces
just four spaces
Wildcard imports should be avoided
in most cases
in most cases
Try to make sure there’s no trailing whitespace
it’s confusing
it’s confusing
Trailing commas go behind list items
git blame tightens
git blame tightens
And comments are important
as long as they’re maintained
when comments are misleading it will drive people insane
just try to be empathic
just try to be a friend
it’s really not that hard, just to adhere to
PEP 8
PEP 8
Constants should be named all capital letters
and live forever
live forever
And camelCase is not for Python
never ever
never ever
And never use a bare exception
be specific
be specific
No one likes the horizontal scrollbar
keep it succinct
keep it succinct
And comments are important
as long as they’re maintained
when comments are misleading it will drive people insane
just try to be empathic
just try to be a friend
it’s really not that hard just to adhere to
PEP8
PEP8
PEP8
PEP8
Liens :
>> pep8
>> pep8online
>> http://antares.sip.ucm.es/cesar/pylint/
Ecrit par Picassciences
Poster un commentaire