Skip to content
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

Run flake8 to find Python syntax errors and undefined names #4756

Closed
wants to merge 1 commit into from

Conversation

cclauss
Copy link

@cclauss cclauss commented Jun 12, 2018

http://flake8.pycqa.org tests can find Python syntax errors and undefined names on each pull request before they are reviewed.

Results on Python 2.7:

  • 3 F821 undefined name

Results on Python 3.6:

  • 10 E999 SyntaxError: invalid syntax
  • 5 F821 undefined name

@cclauss cclauss changed the title Run flake8 tests to find Python syntax errors and undefined names Run flake8 to find Python syntax errors and undefined names Jun 12, 2018
@xfxyjwf
Copy link
Contributor

xfxyjwf commented Jun 18, 2018

Thanks for the PR, but I don't think we want to include python tests in appveyor though. All python tests we have now works with kokoro. Can you instead change the kokoro scripts?

@xfxyjwf xfxyjwf closed this Jun 18, 2018
@cclauss
Copy link
Author

cclauss commented Jun 18, 2018

Is there public documentation for Kokoro?

@cclauss cclauss deleted the patch-2 branch June 18, 2018 22:34
@xfxyjwf
Copy link
Contributor

xfxyjwf commented Jun 18, 2018

kokoro is use this test script:
https://github.com/google/protobuf/blob/master/tests.sh#L280

I think you just need to add the additional tests there. You can run the test script locally with:

./tests.sh python

@xfxyjwf xfxyjwf added the python label Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants