1
0
mirror of https://gitlab.com/free_zed/free_zed.gitlab.io.git synced 2024-06-18 14:32:20 +00:00

🔀 Merge branch 'tuto-pysdur'

*  Pulish 'tuto script durable python'
* 📝 Add a `fforga` tag
This commit is contained in:
Freezed 2021-12-02 00:22:01 +01:00
commit cf9b67c72b
4 changed files with 60 additions and 3 deletions

View File

@ -3,7 +3,7 @@ Date: 2020-10-07 19:00
Category: Conférences
Status: published
Summary: S'organiser à petite échelle avec GitLab
Tags: talk, git, gitlab, devops, django, dev, admin, python, packaging, pip, ci, cd, dry, agile, méthode, collectif, devops, statique, gitlab-pages, web, mkdocs
Tags: forga, talk, git, gitlab, devops, django, dev, admin, python, packaging, pip, ci, cd, dry, agile, méthode, collectif, devops, statique, gitlab-pages, web, mkdocs
S'organiser à petite échelle avec GitLab
----------------------------------------

View File

@ -2,7 +2,7 @@ Title: Get organized with GitLab
Date: 2020-09-15 01:10
Summary: The goal of this group is to provide an organization that facilitates code reuse, documentation and collaboration
Category: Réalisations
Tags: django, python, packaging, pip, ci, cd, git, dry, gitlab, agile, méthode, collectif, dev, devops, statique, gitlab-pages, web, mkdocs
Tags: forga, django, python, packaging, pip, ci, cd, git, dry, gitlab, agile, méthode, collectif, dev, devops, statique, gitlab-pages, web, mkdocs
Status: Published
Lang: en
Slug: gitlab-team-organisation-code-reuse-documentation-and-collaboraton

View File

@ -2,7 +2,7 @@ Title: S'organiser avec GitLab
Date: 2020-09-15 01:10
Summary: Ce groupe a pour objectif de proposer une organisation facilitant la réutilisation de code, la documentation et la collaboration
Category: Réalisations
Tags: django, python, packaging, pip, ci, cd, git, dry, gitlab, agile, méthode, collectif, dev, devops, statique, gitlab-pages, web, mkdocs
Tags: forga, django, python, packaging, pip, ci, cd, git, dry, gitlab, agile, méthode, collectif, dev, devops, statique, gitlab-pages, web, mkdocs
Status: Published
Lang: fr
Slug: gitlab-team-organisation-code-reuse-documentation-and-collaboraton

View File

@ -0,0 +1,57 @@
Title: Tuto : script durable en Python
Date: 2021-04-23 00:44
Modified: 2021-12-02 00:19
Summary: Python est livré avec les piles, profitons-en.
Category: Réalisations
Tags: forga, cli, python, git, dry, gitlab, agile, tuto, méthode, collectif, dev
Status: published
Slug: tuto-script-durable-python-stdlib
💡 C'est quoi l'idée ?
=====================
Un guide de construction d'un script python CLI robuste et maintenable même plusieurs mois après l'avoir laissé de côté! Python est [_livré avec les piles_][py-batteries], profitons-en et utilisons pour ça :
- les tests : [`doctest`][doctest]
- les logs : [`logging`][logging]
- les arguments de la CLI : [`argparse`][argparse]
C'est le 1er tuto dans la liste [_«Parcours de tutorat»_][forga-emb], _Un script durable en Python_.
Plus de détails dans ma proposition de réalisation :
- [le ticket associé][pysdur-issue]
- [les commits][pysdur-commit]
🌐 Quel est le contexte ?
========================
Le groupe [`forga`][forga] a pour objectif de proposer une organisation facilitant :
- ♻️ la réutilisation de code
- 📝 la documentation (de code ou d'autre chose)
- 🤝 la collaboration
Ce groupe à été brièvement abordé dans une [présentation][meetup-forga] pour le groupe _GitLab FR_.
🤝 Merci qui ?
==============
_Vincent Bernat_ pour son billet de blog dont je me suis complètement inspiré :
* [🇫🇷 _Écrire un script Python durable_](https://vincent.bernat.ch/fr/blog/2019-script-python-durable)
* [🇬🇧 _Writing sustainable Python scripts_](https://vincent.bernat.ch/en/blog/2019-sustainable-python-script)
[meetup-forga]: {filename}/afpy-lyon-novembre-2019.md
[forga-emb]: https://gitlab.com/forga/process/fr/embarquement
[pysdur-issue]: https://gitlab.com/forga/process/fr/embarquement/-/issues/6
[pysdur-commit]: https://gitlab.com/free_zed/mypsb/-/commits/tuto-pysdur
[forga]: https://gitlab.com/forga/
[doctest]: https://docs.python.org/3/library/doctest.html
[logging]: https://docs.python.org/3/library/logging.html
[argparse]: https://docs.python.org/3/library/argparse.html
[py-batteries]: https://docs.python.org/3/tutorial/stdlib.html#batteries-included