Escaline

Sign in or create your account | Project List | Help

Escaline Git Source Tree

Root/conventions_codage.txt

1CONVENTIONS DE CODAGE :
2=======================
3
4 - Sauts de lignes unix (\n)
5 - Codage UTF-8
6 - Code en anglais
7 - Commentaires en anglais
8 - Tabulations (pour l'affichage, 1tab = 4espaces affichés)
9 - Nom de classe en CamelCase
10   Ex:
11       class Command:
12           pass
13
14 - Nom de variables/méthodes en minuscule avec _
15   Ex:
16       def foo_bar(self):
17           pass
18
19 - 80 cars max pour chaque lignes, si ligne non séparable, utiliser \ et tabuler+1 :
20   Ex:
21       if toto and tata and tonton and \ [--->80]
22          titi and lolz:
23
24   si ligne séparable (ex: arguments d'une méthode) saut + tab+1 & aligner à droite :
25   Ex:
26       def super_methode(self, premier_arg, second_arg, lalaz='OMG', [--->80]
27                                                            dernier_arg=None)
28
29   (idem pour les appels)
30

Archive Download this file