简体   繁体   中英

Enforce pylint score to merge on a github branch

I would like to setup a quality check that enforces a certain score from pylint before authorizing a merge on a certain github branch. Is there a way to do this ? I see on github that you can set up "Require status checks to pass before merging" and I guess one status check could be a certain score on pylint.

Thank you for any guidance.

There is now a solution for this: Use the new --fail-under flag.

"If the final score is more than the specified score, it's considered a success and pylint exits with exit code 0. Otherwise, it's considered a failure and pylint exits with its current exit code based on the messages issued."

https://github.com/PyCQA/pylint/commit/16017690196e77fcabdedf1cd8b8cbfb357a97d4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM