Skip to content

Style Changes#55

Merged
bram85 merged 36 commits intotopydo:masterfrom
minchinweb:style
Oct 13, 2015
Merged

Style Changes#55
bram85 merged 36 commits intotopydo:masterfrom
minchinweb:style

Conversation

@minchinweb
Copy link
Contributor

This is all the style changes split out of PR #52.

There should be no substantial code changes, just style fixes.

Issues addressed:

  • PEP8 (E125, E127, E128, E201, E202, E203, E221, E225, E231, W291, W293, E301, E302, E303, W391, E501 (selected lines only), E502, E703, and E711)
  • Travis-CI
    • add Python 3.5
    • add Python 3.2, PyPy, and PyPy3 as an 'acceptable failure', allowing interested parties to see how close topydo is to running on those platforms
  • tests
    • rename numbered tests so they sort in order
    • make all of the test file self-runnable
    • rename test files so they start with 'test'. This allows unittest's default auto-discovery to work
  • documentation
    • update the copyright year in the version statement
    • update the copyright year in the header of the code files
    • spellcheck
  • imports
    • sort imports
    • remove unused imports

This allows the default discover on unittest to work
continuation line with same indent as next logical line
continuation line over-indented for visual indent
continuation line under-indented for visual indent
whitespace after '('
whitespace before ')'
whitespace before ':'
multiple spaces before operator
missing whitespace around operator
missing whitespace after ':'
missing whitespace after ','
at least two spaces before inline comment
trailing whitespace
blank line contains whitespace
expected 1 blank line, found 0
expected 2 blank lines, found 1 (above module level defined classes and
functions)
too many blank lines
blank line at end of file
line too long (> 79 characters)
the backslash is redundant between brackets
statement ends with a semicolon
comparison to None should be 'if cond is None:' or 'if cond is not None:'
Sorted using `isort`. Sorted alphabetically, with sections for standard
library, third-party, and then internal imports.
Allows monitoring to see how close we are to supporting these on these
platforms.
@bram85
Copy link
Member

bram85 commented Oct 9, 2015

Thanks for your patch. Had a quick look at it, seems to look good overall. I'll be out of town for a couple of days, will review it more thoroughly somewhere next week.

1 blank line required after class docstring
No blank lines allowed after function docstring
First line should end with a period
@minchinweb
Copy link
Contributor Author

Sounds great 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a typo here.

@bram85
Copy link
Member

bram85 commented Oct 13, 2015

Looks great, will merge it despite the minor typo. Thanks a lot for your effort to fix those style issues.

bram85 added a commit that referenced this pull request Oct 13, 2015
@bram85 bram85 merged commit 95861af into topydo:master Oct 13, 2015
mruwek added a commit to mruwek/topydo that referenced this pull request Oct 13, 2015
Adhere to standards introduced with topydo#55
mruwek added a commit to mruwek/topydo that referenced this pull request Oct 13, 2015
Adhere to standards introduced with topydo#55
mruwek added a commit to mruwek/topydo that referenced this pull request Oct 13, 2015
Adhere to standards introduced with topydo#55
@minchinweb minchinweb deleted the style branch October 14, 2015 00:19
minchinweb added a commit to minchinweb/topydo that referenced this pull request Oct 14, 2015
See pull request topydo#55
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

Successfully merging this pull request may close these issues.

2 participants