python-wechaty icon indicating copy to clipboard operation
python-wechaty copied to clipboard

pre-push git hook to run linter

Open kis87988 opened this issue 6 years ago • 6 comments

Recently I was working on another project. I realized we don't have pre-push git hook in the python-wechaty like node version wechaty.

I would like to implement that feature that can help the developer run the linters before the push.

kis87988 avatar Sep 24 '20 17:09 kis87988

I'am glad to hear that. Please let me know what can I do for you ?

wj-Mcat avatar Sep 25 '20 01:09 wj-Mcat

Do we want to bump the version every time push too?

kis87988 avatar Sep 27 '20 22:09 kis87988

This is required for us to keep every commit more of a milestone. And try to bump version after green ci. If the color of ci is red,it shouldn't commit and bump the version. How do you think about?

wj-Mcat avatar Sep 27 '20 22:09 wj-Mcat

I agree with that too. Because a PR should not bump the version. a version should be bump only if ready to cut a version with a cut off developing.

kis87988 avatar Sep 27 '20 22:09 kis87988

Do we want to bump the version every time push too?

Waiting for your new cimmit. Thanks a lot.

wj-Mcat avatar Oct 07 '20 11:10 wj-Mcat

@wj-Mcat how about let's get this one in first? I don't think we can let CI is green and bump the version via CI for now, but I can try that in another issue tasks

kis87988 avatar Oct 10 '20 18:10 kis87988