39 Commits

Author SHA1 Message Date
7b99fba63e
Corrections mineures
Signed-off-by: ynerant <ynerant@crans.org>
2021-02-11 18:17:28 +01:00
143aae2e48
Écriture des slides
Signed-off-by: ynerant <ynerant@crans.org>
2021-02-11 00:31:36 +01:00
d0becd4063
Support de la compilation des slides via l'intégration continue et déploiement automatique
Signed-off-by: ynerant <ynerant@crans.org>
10-deploy-slides v16
2021-02-08 20:37:49 +01:00
560e9ee6db
On ne cherche pas à couvrir ce qui n'est pas testable
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
v15
2021-01-28 18:07:42 +01:00
db413e4a35
Réparation du tri
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
9-fix-tests v14
2021-01-28 14:50:37 +01:00
e8fc6d0816
On remplace les if en elif pour avoir un résultat correct
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-28 14:47:20 +01:00
be7efbbfa7
Pour vérifier les calculs, on commence par transformer les entrées en entiers
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-28 14:45:58 +01:00
b8161eef93
Réparation des blagues
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-28 14:44:02 +01:00
bcfd13442f
Réparation du séminaire
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-28 14:42:23 +01:00
f3dd9157c7
Ajout de tests pour tester toutes les fonctions
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
8-write-tests v13
2021-01-27 15:46:24 +01:00
40076ad3c1
Ajout d'un README pour les badges
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
7-badges v12
2021-01-26 18:57:48 +01:00
60e09751da
Calcul de la couverture
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
6-cover-code v11
2021-01-26 18:47:18 +01:00
1fc558a2ad
On utilise une classe pour les tests
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
v10
2021-01-26 18:37:12 +01:00
df223bd19e
La fonction d'aide renvoie le texte à afficher au lieu de l'afficher directement
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
v9
2021-01-26 17:45:44 +01:00
7c2d082cf4
On lint le fichier de tests également
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
5-use-tests v8
2021-01-26 17:39:54 +01:00
1ba9934438
Pytest est requis
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 17:08:30 +01:00
d4d595ed68
Ajout d'un fichier de test avec pytest
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
v7
2021-01-26 17:07:12 +01:00
9026dd56cc
Changement dans l'exécution du script
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
4-execute-script v6
2021-01-26 16:52:15 +01:00
6bd2b3c66c
On exécute le programme
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:50:52 +01:00
01337279fc
Ajout de docstrings. Pylint est content
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
3-linting-ok v5
2021-01-26 16:47:46 +01:00
d8c6b6e6bf
Factorisation de tests
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:45:23 +01:00
ecec88e230
Il faut aussi renommer les variables dans leurs usages
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:43:18 +01:00
9018ab4996
On renomme a, b et c qui ne sont pas suffisamment explicites
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:41:07 +01:00
ca69954315
On quitte un programme avec sys.exit
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:37:48 +01:00
4c241eeb60
On ne redéfinit pas des fonctions pré-implémentées
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:35:59 +01:00
5e55a65b3f
Pas d'espace entre le nom du paramètre et la valeur par défaut. flake8 est content
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:33:45 +01:00
e551f8b98d
Les lignes ne doivent pas être trop longues
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:32:03 +01:00
55c67118b4
__main__ est une chaîne, pas une variable. Le programme a maintenant l'air de fonctionner
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2.5-program-running v2.5
2021-01-26 16:29:43 +01:00
25035a3221
Vrai se dit True en Python, pas true
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:27:40 +01:00
3d3539930a
Une indentation doit être un multiple de 4 espaces
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:26:16 +01:00
461a0dac34
Guillemets manquants autour d'une chaîne à imprimer
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:24:14 +01:00
8aff3bc57d
Intervetissement des : et = dans les paramètres de la fonction quit
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:23:07 +01:00
b932e1ad6e
Une chaîne de caractères est entourée de guillemets
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:21:00 +01:00
4cdefaa8a3
Une comparaison se fait avec un double =
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 16:16:34 +01:00
5cb441f36d
Virgule manquante dans les paramètres
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
v4
2021-01-26 16:14:34 +01:00
2a35b87e5d
Un crochet était manquant
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
v3
2021-01-26 11:59:48 +01:00
d3e733858e
Ajout de parenthèses manquantes autour de print
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 11:57:03 +01:00
b4130b32f7
Ajout d'un analyseur syntaxique
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2-add-pylint v2
2021-01-26 11:54:11 +01:00
8ccb1bf085
Premier chatbot
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
1-start v1
2021-01-26 11:48:21 +01:00