-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[mod] lint github YAML config files #3314
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
meh, I understand but the workflows are painful to test / develop. I often end up with |
Yeah, but you are talking about challenges in the development cycles when setting up a workflow, this PR is made to reduce avoidable errors / improve quality of YAML files.
This yamllint test can be run before you create the commit and is started by the CI when we send a PR.
The intention (gain) is to lint yaml files before merge commits into master (YAML files will be linted in the CI of a PR). By example: In #3313 I merged three YAML issues into the master tree --> https://github.com/searxng/searxng/actions/runs/8214791833/workflow#L117 To fix I needed two commits a48da9b and 691390b .. with the addition from this PR, YAML issues in the config files will be reported in the CI tests of a PR .. I would never had merged this yaml errors. |
I see these type of errors in my editor as I type.
It is going to do additional tests before the commit --> additional stress for nothing as long the editor make sure to show invalid YAML instantaneously. |
About instant check, what is the purpose of these lines ? Lines 83 to 90 in 691390b
Does it ask flycheck to run yaml-lint while you are editing? |
I see pyright and pylint issues in my editor but that is not a reason to remove these tests from the CI
Sadly yaml-lint does not work yet well in my editor (emacs).
Yes, the intention is to set up the flycheck variables needed to start a yamllint in the emacs editor from the local python installation we have in Sadly this setup does not work yet in my emacs .. 🤷
I don't have much experience with developing workflows, this PR would have helped me. But if you think it unnecessarily complicates the development processes, then we can close the PR ... I will follow your lead, you have more experience than I do .. |
What does this PR do?
yamllint
github config files (YAML)Why is this change important?
find issues before merge upstream into
master
branchHow to test this PR locally?
Related issues