Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cclauss
Copy link

@cclauss cclauss commented Jul 21, 2019

flake8 testing of https://github.com/googleapis/google-cloud-java on Python 3.7.1

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./utilities/add_snippets_to_file.py:213:82: F821 undefined name 'signautre'
        raise ValueError('Could not parse javadoc snippets for method {}'.format(signautre))
                                                                                 ^
1     F821 undefined name 'signautre'
1

E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.

  • F821: undefined name name
  • F822: undefined name name in __all__
  • F823: local variable name referenced before assignment
  • E901: SyntaxError or IndentationError
  • E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree

Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for context and/or discussion)

[flake8](http://flake8.pycqa.org) testing of https://github.com/googleapis/google-cloud-java on Python 3.7.1

$ __flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics__
```
./utilities/add_snippets_to_file.py:213:82: F821 undefined name 'signautre'
        raise ValueError('Could not parse javadoc snippets for method {}'.format(signautre))
                                                                                 ^
1     F821 undefined name 'signautre'
1
```
__E901,E999,F821,F822,F823__ are the "_showstopper_" [flake8](http://flake8.pycqa.org) issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.
* F821: undefined name `name`
* F822: undefined name `name` in `__all__`
* F823: local variable name referenced before assignment
* E901: SyntaxError or IndentationError
* E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 21, 2019
@cclauss cclauss changed the title Undefined name: Fix type on viariable name Undefined name: Fix typo on viariable name Jul 21, 2019
@chingor13 chingor13 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 23, 2019
@chingor13 chingor13 self-assigned this Jul 23, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 23, 2019
@chingor13 chingor13 merged commit 22ed8d0 into googleapis:master Jul 23, 2019
@cclauss cclauss deleted the patch-1 branch July 24, 2019 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants