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
Fail tests on flake8 failure #63
Conversation
624a03f
to
9c2d725
Compare
9c2d725
to
83b1d29
Compare
83b1d29
to
a2e25f8
Compare
cde3af2
to
e056b6e
Compare
e056b6e
to
ee5e5dc
Compare
Why only if greater than 10 BTW? |
@guysmoilov just some number because you asked in the ticket to have a certain range, so I thought 10 would be a good start. Its the sum by the way. So if the total weight of issues is 10 then it will fail. Should I reduce it to 5 ? |
I guess I don't understand how flake8 works, I assumed we can set a "maximum allowed severity level" |
Then we can do selective error codes like you did for other flake8 test you are already running |
But I have slight preference over testing everything, and not just selected ones. Code is more hygiene that way. |
For syntax errors we anyways fail the test, for the other errors we show them as warnings, but if the total count of these exceeds 10 then we throw an error asking user to fix those lint errors