Skip to content

Commit

Permalink
Start to work on #13, @BastienTrotobas will finish.
Browse files Browse the repository at this point in the history
  • Loading branch information
Naereen committed Aug 30, 2018
1 parent 1db3c65 commit e48f8e1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions logs/pylint3_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Report
======
1317 statements analysed.
1320 statements analysed.

Statistics by type
------------------
Expand All @@ -27,13 +27,13 @@ Raw metrics
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |1557 |58.71 |NC |NC |
|code |1560 |58.71 |NC |NC |
+----------+-------+------+---------+-----------+
|docstring |394 |14.86 |NC |NC |
|docstring |395 |14.87 |NC |NC |
+----------+-------+------+---------+-----------+
|comment |282 |10.63 |NC |NC |
|comment |282 |10.61 |NC |NC |
+----------+-------+------+---------+-----------+
|empty |419 |15.80 |NC |NC |
|empty |420 |15.81 |NC |NC |
+----------+-------+------+---------+-----------+


Expand Down
20 changes: 10 additions & 10 deletions logs/pylint_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ C:129,24: More than one statement on a single line (multiple-statements)
W: 82,12: Unused variable 'i' (unused-variable)
R: 53, 4: Too many branches (15/12) (too-many-branches)
R: 53, 4: Too many statements (70/50) (too-many-statements)
************* Module parcoursup.ordreappel.AlgoOrdreAppel
C: 88,18: More than one statement on a single line (multiple-statements)
C:132,18: More than one statement on a single line (multiple-statements)
************* Module parcoursup.ordreappel.VoeuClasse
C: 30, 0: Wrong hanging indentation (remove 4 spaces).
estBoursier: bool,
Expand All @@ -57,9 +60,6 @@ C: 53, 0: Wrong continued indentation (add 12 spaces).
):
^ | (bad-continuation)
C: 25, 0: Missing function docstring (missing-docstring)
************* Module parcoursup.ordreappel.AlgoOrdreAppel
C: 88,18: More than one statement on a single line (multiple-statements)
C:132,18: More than one statement on a single line (multiple-statements)
************* Module parcoursup.propositions.Candidat
R: 13, 0: Too few public methods (0/2) (too-few-public-methods)
************* Module parcoursup.propositions.Etablissement
Expand Down Expand Up @@ -122,7 +122,7 @@ C: 34, 0: Wrong continued indentation (add 12 spaces).
):
^ | (bad-continuation)
R: 25, 0: Too many instance attributes (11/7) (too-many-instance-attributes)
R:121,11: Too many boolean expressions in if statement (8/5) (too-many-boolean-expressions)
R:126,11: Too many boolean expressions in if statement (8/5) (too-many-boolean-expressions)
************* Module parcoursup.propositions.GroupeInternatUID
W: 24, 0: FIXME le code java dit un fois à -1 une fois à 0 ? (fixme)
C: 17, 0: Wrong continued indentation (add 9 spaces).
Expand Down Expand Up @@ -278,7 +278,7 @@ W: 24,28: Unused argument 'desc' (unused-argument)

Report
======
1317 statements analysed.
1320 statements analysed.

Statistics by type
------------------
Expand All @@ -290,7 +290,7 @@ Statistics by type
+---------+-------+-----------+-----------+------------+---------+
|class |28 |6 |+22.00 |100.00 |39.29 |
+---------+-------+-----------+-----------+------------+---------+
|method |100 |10 |+90.00 |99.00 |44.00 |
|method |101 |10 |+91.00 |99.01 |44.55 |
+---------+-------+-----------+-----------+------------+---------+
|function |23 |3 |+20.00 |65.22 |34.78 |
+---------+-------+-----------+-----------+------------+---------+
Expand Down Expand Up @@ -344,13 +344,13 @@ Raw metrics
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |1557 |58.71 |NC |NC |
|code |1560 |58.71 |NC |NC |
+----------+-------+------+---------+-----------+
|docstring |394 |14.86 |NC |NC |
|docstring |395 |14.87 |NC |NC |
+----------+-------+------+---------+-----------+
|comment |282 |10.63 |NC |NC |
|comment |282 |10.61 |NC |NC |
+----------+-------+------+---------+-----------+
|empty |419 |15.80 |NC |NC |
|empty |420 |15.81 |NC |NC |
+----------+-------+------+---------+-----------+


Expand Down
2 changes: 1 addition & 1 deletion parcoursup/ordreappel/GroupeClassement.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def log(*args, **kwargs) -> None:
self.voeuxClasses.sort()
log(f" Après tri : {self.voeuxClasses}...")

for i, voeu in enumerate(self.voeuxClasses):
for voeu in self.voeuxClasses:
# on ajoute le voeu à la fin de la file (FIFO) correspondante
filesAttente[voeu.typeCandidat].append(voeu)
# log(f" On ajoute le voeu {voeu} à la file du type {voeu.typeCandidat}, c'est le {i+1}ème à être ajouté.")
Expand Down

0 comments on commit e48f8e1

Please sign in to comment.