-
Notifications
You must be signed in to change notification settings - Fork 15
hotfix: fix 701fdcd #91
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
hotfix: fix 701fdcd #91
Conversation
701fdcd disabled Markdown linting and intoduced a different note context to the README.md. This commit fixes that. Signed-off-by: Maryam Tahhan <[email protected]>
@SamYuan1990 @rootfs Can you please review? |
the image still won't work. |
why not make it as a github action?
|
for example https://github.com/cncf/tag-env-sustainability/blob/main/.github/workflows/checks.yml#L21 sustainable tag lint markdown, as they using markdown as web page. but as markdown just our document should we so strict on markdown lint? |
If you install the pre-commit hooks it will perform the checks before you |
I suppose if it's really needed, please put it into CI, otherwise, just checking for people who enabled with pre-commit, which still give chance for things get skipped. |
for example, if the container pull won't work for me, I would like to disable the pre commit check. |
Hi @SamYuan1990 I can add a github workflow/action also. what steps did you follow to see the failure? On my mac I have docker running.
I can see the pull working:
I should add that if I try to commit a change and I've not sourced that python venv then pre-commit just doesn't run... so it shouldn't have an effect in envs where it's not installed/enabled to run |
I can't pull the docker image to my local. To run lint on CI is better than a local pre commit hook, why we have to implements in pre commit hook way for lint? |
and meanwhile, I don't want it limit contributes, which
if someone doesn't install pre commit or #92 |
But a developer to this repo has these pre-requisites anyway: These are listed in the Readme. I don't think pre-commit adds too much of an ask to install if they have already installed the pre-requisites. Longer term it helps the quality of contributions. I can't replicate the issue you are seeing. And when I don't have pre-commit installed and I commit to the repo I don't see the error you are seeing either. I'm happy to add a workflow also to ensure this is covered. |
make a summary here is my opinion: I hope we can make people easy to start with their contribution.
|
Honestly, I haven't use my local container run time for half years more.... which the vscode (my personal IDE) as a webUI for cloud IDE, and CI plays role as remote server. :-) |
there's an option to skip the pre-commit hook if you are having issues with it that is to just pass
VS the normal flow:
|
Signed-off-by: Maryam Tahhan <[email protected]>
adef7a1
to
b4c2b49
Compare
Signed-off-by: Maryam Tahhan <[email protected]>
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.
LGTM, will test via another PR.
701fdcd disabled Markdown linting and intoduced
a different note context to the README.md. This
commit fixes that.