-
Notifications
You must be signed in to change notification settings - Fork 902
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
Introduce proper formatting on python ,bash and yaml files #2774
Introduce proper formatting on python ,bash and yaml files #2774
Conversation
82f6b06
to
787cb98
Compare
Please rebase to master to fix the conflict with trivy_scan.sh and please only scan files that are changed in pull requests and are in the folders /common and /example for now. |
The error messages should also guide developers on how to fix it in their branch to pass the test. |
a3e448d
to
6456723
Compare
I think you can fix the python and bash scripts in this PR. |
did not understand what you meant? |
There are a lot of warnings about bash and python files. Most of them are maintained directly in this repository. So you can just fix them with the formatting/linting changes and add them here to this PR. Everything in /hack should be fixed for example. |
Okay I will do that. And Do I need to run this action only in the files change during the PR ? |
Yes we should only check files that are changed in the PR. So PR by PR stuff will be cleaned up. And I think we should exclude /apps in general. Do you have something to check markdown as well? |
ce6f35e
to
a3ea293
Compare
I di the requested changes. After the check, I will add guidelines to find respective errors in the workflow. Can you give me update regarding the state ? @juliusvonkohout There are linters for markdowns as well. markdown_linters |
apps/kfp-tekton/upstream/base/installs/multi-user/pipelines-profile-controller/run_tests.sh
Outdated
Show resolved
Hide resolved
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
… sh files to address the formattings according to shellcheck Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
…matter Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
ee3415d
to
9ae743f
Compare
/lgtm we have to test this in practice |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: juliusvonkohout The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…2774) * Add balck github action to format python files Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Formatted python files from the balck formatter Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Add github action to format yaml files Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Add step YAML Formatting Guidelines to yaml_formatter.yaml file Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * made chnages to run next steps although the previous step fail Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * switch steps Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * added shellCheck for bash formatting Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Changed code only to lint yaml files inside the common and example folder Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Changed main to master Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Run yamllint on files which is chnaged in PR only Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Changed 'Proper formatting on python files' github workflow only to run for python files in common and example folder Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Add shellcheckrc file Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Disable SC1017,SC2086,SC2070 rules when shellcheck and did changes in sh files to address the formattings according to shellcheck Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * made chnages in sh files Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * made chnages in sh files to address formattings Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * made chnages in sh files Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * disable SC2046 rule Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * disable SC2006 and SC2155 rule Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Change shellcheck only to run for PR chnaged files Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Address a issue with bash_formatter.yaml Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Changed origin/main to origin/master Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Formatted python files from the balck formatter Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Add github action to format yaml files Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Add step YAML Formatting Guidelines to yaml_formatter.yaml file Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * made chnages to run next steps although the previous step fail Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * switch steps Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Add shellcheckrc file Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Disable SC1017,SC2086,SC2070 rules when shellcheck and did changes in sh files to address the formattings according to shellcheck Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * made chnages in sh files Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Change shellcheck only to run for PR chnaged files Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Ensure the full history is fetched Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Ensure the full history is fetched in bash_formatter Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * fix SC2148 (error) Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * remove commented lines in bash_formatter.yaml Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * remove formatting chnages done to app folder content Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Add guidlines to how to format python files according to black formatter Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> * Add guidlines to how to format bash files according to shellcheck formatter Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com> --------- Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
Pull Request Template for Kubeflow manifests Issues
✏️ A brief description of the changes
🐛 If this PR is related to an issue, please put the link of the issue here.
✅ Contributor checklist
DCO
check)cla/google
check)