Page MenuHomeSolus

Update pycodestyle to 2.5.0
Needs ReviewPublic

Authored by maverick1 on May 27 2019, 5:31 AM.

Details

Reviewers
None
Group Reviewers
Triage Team
Summary

Update pycodestyle to 2.5.0

New Checks

  • E117: Over-indented code blocks
  • W505: Maximum doc-string length only when configured with --max-doc-length

Changes

  • Add E117 error for over-indented code blocks.
  • Allow W605 to be silenced by # noqa and fix the position reported by W605
  • Allow users to omit blank lines around one-liner definitions of classes and functions
  • Include the function return annotation (`->`) as requiring surrounding whitespace only on Python 3
  • Verify that only names can follow `await`. Previously we allowed numbers and strings.
  • Remove support for EOL Python 2.6 and 3.3.
  • Add support for Python 3.7
  • Fix detection of annotated argument defaults for E252
  • Correct the position reported by W504
Test Plan

Checked a python code against pep8.

Diff Detail

Repository
R2504 pycodestyle
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

maverick1 created this revision.May 27 2019, 5:31 AM
maverick1 requested review of this revision.May 27 2019, 5:31 AM
maverick1 edited the summary of this revision. (Show Details)May 27 2019, 5:31 AM