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

myint / autoflake / 629
99%

Build:
DEFAULT BRANCH: master
Ran 23 Aug 2020 01:10AM UTC
Jobs 10
Files 2
Run time 1min
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

pending completion
629

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

293 of 299 branches covered (97.99%)

1062 of 1068 relevant lines covered (99.44%)

9.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 629.1 (PYFLAKES_VERSION=pypi) 23 Aug 2020 01:10AM UTC 0
99.16
Travis Job 629.1
2 629.2 (PYFLAKES_VERSION=github) 23 Aug 2020 01:10AM UTC 0
99.16
Travis Job 629.2
3 629.3 (PYFLAKES_VERSION=pypi) 23 Aug 2020 01:11AM UTC 0
99.16
Travis Job 629.3
4 629.4 (PYFLAKES_VERSION=github) 23 Aug 2020 01:10AM UTC 0
99.16
Travis Job 629.4
5 629.5 (PYFLAKES_VERSION=pypi) 23 Aug 2020 01:10AM UTC 0
98.97
Travis Job 629.5
6 629.6 (PYFLAKES_VERSION=github) 23 Aug 2020 01:11AM UTC 0
98.97
Travis Job 629.6
7 629.7 (PYFLAKES_VERSION=pypi) 23 Aug 2020 01:11AM UTC 0
98.97
Travis Job 629.7
8 629.8 (PYFLAKES_VERSION=github) 23 Aug 2020 01:11AM UTC 0
98.97
Travis Job 629.8
9 629.9 (PYFLAKES_VERSION=pypi) 23 Aug 2020 01:11AM UTC 0
99.06
Travis Job 629.9
10 629.10 (PYFLAKES_VERSION=github) 23 Aug 2020 01:12AM UTC 0
99.06
Travis Job 629.10
Source Files on build 629
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #629
  • e14b5c35 on github
  • Prev Build on master (#628)
  • Next Build on master (#630)
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

© 2025 Coveralls, Inc