-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat: add precommit #7056
feat: add precommit #7056
Conversation
@juju4 Could you please resolve the conflicts? |
@juju4 Could you please take a look at previous comment? |
I merged latest upstream to address conflict. On codespell remediations, only doing part of them as too many. Each content owner should address their own. arm-ttk pipeline failing part is new and should not be related to PR as no functional change. |
We will take a look. Thanks! |
I applied remediation changes to branch to fix precommitValidation pipeline (but impacting tons of files as json prettify/standardize, end of files, UTF-8 BOM, duplicate key and so on) codespell and the rest in future PR |
Any input here? Should I revert remediation and put test in continue-on-error like #7323 ? |
News ? |
Hi @mkchiliveri, please provide your response on this. Thanks |
Hi @daxesht, could you please provide your feedback on this. Thanks |
Hi @daxesht, please provide your feedback on this. Thanks |
Hi @daxesht, could you please provide your feedback on this. Thanks |
Hi @daxesht, please provide your feedback on this. Thanks |
Any update on this or path forward? |
Hi @juju4, I apologize for the inconvenience. We will provide you with an update by the 13th. Please update your branch from master in the meantime. Thanks |
Hi @juju4, Having analyzed the contents, we are not able to determine the reason for this change. Could you please elaborate on this and provide screenshots of this functionality if possible? Also the changes you are requesting are for both Github workflows and Azure pipelines, can't we handle this in one place instead of both? It would also be great if we could connect over a call to discuss further. Thanks |
Hi @juju4, waiting for your response over above comments and also please resolve branch conflicts. Thanks |
Hi @juju4, please check comments above and act accordingly. Thanks |
Hi @juju4, I am looking forward to your response to the above comments, as well as the resolution of branch conflicts. |
Hi @juju4, please respond over above comments and also please resolve branch conflicts. Thanks |
Hi @juju4, please check comments above and act accordingly. Thanks |
Hi @juju4, hope you are doing well. Just wanted to check if you got a chance to look at the feedback shared. Please feel free to reach out to us for any queries and/or support. Thanks |
The content of the PR has been explained in #7056 (comment) It adds no functionality outside of validating more content but goes further than existing validations. same than #7323 |
Noted @juju4, |
Hi @juju4, |
Hi @juju4 , As discussed, can you please check on if we can enforce this rule only on files committed as part of PR so that author can take an action immediately instead of the full review. |
Per pre-commit-ci/issues#90, this is not possible. at least, not with the tool. As said, the normal way would be cleaning existing repo progressively. Part work done in following commits that were reverted to keep this PR small. Can push them back after but for separate PR. |
Hi @juju4, as discussed we will take this as internal feature and try to develop this in future. Thanks |
Change(s):
Reason for Change(s):
Version Updated:
Testing Completed:
Checked that the validations are passing and have addressed any issues that are present:
This PR adds precommit config
Example run as is without fixing anything
https://github.com/juju4/Azure-Sentinel/actions/runs/3867376910/jobs/6592111638#step:4:52
Following fixed initial config, not sure if you prefer to be in this PR or a different one
https://github.com/juju4/Azure-Sentinel/actions/runs/3867831878
master...juju4:Azure-Sentinel:devel-precommit2
Follow-up hooks here or new PR:
juju4@b079d36
a bit of remediation (there is a lot here...)
https://github.com/juju4/Azure-Sentinel/actions/runs/3867789949/jobs/6592801053