• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

myint / autoflake / 629 / 3
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 23 Aug 2020 01:11AM UTC
Files 2
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Aug 2020 01:09AM UTC coverage: 99.158% (+0.06%) from 99.102%
PYFLAKES_VERSION=pypi

push

travis-ci

web-flow
Fix multiline import statements (proposal for issue #8) (#63)

* Add skeleton for fixing multiline from imports

* Rename "Contination" to "PendingFix"

* Add fix for the multiline from import problem

* Add fix for multiline imports without from

* Add fix for multiline relative imports

* Fix other edge cases of multiline import

Such as:
- leading/trailing commas/line continuation
- try/except
- semicolon
- empty imports as result

In some cases the approach of "not changing anything if it is too risk"
was adopted (as already happens in other parts of the code).

* Deal with CLI options in FilterMultilineImport

* Simplify multiline imports by ignoring comments

Unfortunately treating inline comments inside imports increases the
complexity in the implementation.
This change reduces complexity by refusing to change multiline import
statements that contain comments.

This approach is also used in other parts of the code.

* Simplify logic in multiline imports

... By using the existing code as a template.

* Fix docstrings according to pydocstyle

* Remove unused itertools

* Remove solved TODO comment

* Add examples from issue #8 and fix edge cases

335 of 342 branches covered (97.95%)

1060 of 1069 relevant lines covered (99.16%)

0.99 hits per line

Source Files on job 629.3 (PYFLAKES_VERSION=pypi)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 604
  • Travis Job 629.3
  • e14b5c35 on github
  • Prev Job for PYFLAKES_VERSION=pypi on master (#628.1)
  • Next Job for PYFLAKES_VERSION=pypi on master (#630.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc