Reputation: 157
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.
Upvotes: 5
Views: 808
Reputation: 5104
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
Upvotes: 2