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

pep8 #35

Open
nicwest opened this issue Jan 27, 2016 · 0 comments
Open

pep8 #35

nicwest opened this issue Jan 27, 2016 · 0 comments

Comments

@nicwest
Copy link
Contributor

nicwest commented Jan 27, 2016

There are some pep8 issues with this code atm:

9       E111 indentation is not a multiple of four
1       E121 continuation line under-indented for hanging indent
73      E122 continuation line missing indentation or outdented
12      E128 continuation line under-indented for visual indent
1       E129 visually indented line with same indent as next logical line
58      E201 whitespace after '('
119     E202 whitespace before ')'
1       E203 whitespace before ','
134     E221 multiple spaces before operator
2       E225 missing whitespace around operator
5       E231 missing whitespace after ','
12      E251 unexpected spaces around keyword / parameter equals
6       E261 at least two spaces before inline comment
1       E265 block comment should start with '# '
51      E302 expected 2 blank lines, found 1
2       E303 too many blank lines (2)
281     E501 line too long (84 > 79 characters)
1       E703 statement ends with a semicolon
2       E712 comparison to False should be 'if cond is False:' or 'if not cond:'
1       W391 blank line at end of file

Personally I don't massively care about E501 (within reason) and I would just ignore it, the rest decrease readability and in places could introduce bugs.

There are a also handful of non stylistic issues:

4       F401 'sleep' imported but unused
1       F402 import 'todo' from line 5 shadowed by loop variable
2       F841 local variable 'default' is assigned to but never used

I like flake8 for static analysis personally (combines pep8, pyflakes, and mccabe)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant