-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linte les fichiers YAML/Python en incrémental #1135
Conversation
.circleci/lint-changed-yaml-tests.sh
Outdated
|
||
last_tagged_commit=`git describe --tags --abbrev=0 --first-parent` # --first-parent ensures we don't follow tags not published in master through an unlikely intermediary merge commit | ||
|
||
if ! changes=$(git diff-index --name-only --exit-code $last_tagged_commit -- "tests/*.yaml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je crois que cette commande va aussi identifier les fichiers supprimés. L'option --diff-filter=ACM
peut être utile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, j'ajoute :
--diff-filter=ACMR
pour tester aussi les changements de nom.
tests/formulas/paje/paje.yaml
Outdated
@@ -5,6 +5,7 @@ | |||
|
|||
- name: "Avant le 1er avril 2014, le montant de base de la PAJE est proprotionnel à la BMAF" | |||
period: 2013-01 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce que les lignes en trop doivent entraîner des erreurs de yamllint ? Il semble que le test n'a pas été déclenché en tout cas sur la CI. (edit je veux dire que le test a tourné mais n'a pas fait de KO.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En fait non ils ne déclenchent pas des erreurs. Je vais ajouter un test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5634c42
to
88acfcd
Compare
(rebasée) |
88acfcd
to
60cf399
Compare
Depuis le dernier published git tag (version)
6cc3569
to
0dd2770
Compare
Child of #372
Relates to #1039
.circleci
.yamllint
).flake8
).Ces changements :
.circleci
).Quelques conseils à prendre en compte :
Documentez votre contribution avec des références législatives.Mettez à jour ou ajoutez des tests correspondant à votre contribution.Augmentez le numéro de version danssetup.py
.Mettez à jour leCHANGELOG.md
.