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

PyCQA / pylint / 1410
92%
main: 95%

Build:
Build:
LAST BUILD BRANCH: maintenance/2.15.x
DEFAULT BRANCH: main
Ran 09 Aug 2017 12:05PM UTC
Jobs 7
Files 55
Run time 7min
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
1410

push

travis-ci

PCManticore
<a href="https://github.com/PyCQA/pylint/commit/<a class=hub.com/PyCQA/pylint/commit/95c14357327c66ec887d3bbf1c92905d4adbb3c0">95c143573<a href="https://github.com/PyCQA/pylint/commit/95c14357327c66ec887d3bbf1c92905d4adbb3c0">&quot;&gt;Do not warn for locally disabled cyclic import checks

Since commit </a><a class="double-link" href="https://github.com/PyCQA/pylint/commit/<a class="double-link" href="https://github.com/PyCQA/pylint/commit/7df8caaa3e1995018417ac2fd87afd89be6945ba">7df8caaa3</a>">7df8caaa3</a><a href="https://github.com/PyCQA/pylint/commit/95c14357327c66ec887d3bbf1c92905d4adbb3c0">,
the &quot;# pylint: disable=cyclic-import&quot; statment is
respected.

One case which was not covered is the disabling of the
check for an import from inside a method/function.

Example:

File test1.py
&gt; class B(object):
&gt;     pass
&gt;
&gt; def function():
&gt;     from . import test2  # pylint: disable=cyclic-import
&gt;     pass

File test2.py
&gt; from . import test1
&gt;
&gt; class A(object):
&gt;     pass

Pylint wrongly reports:
Cyclic import (testfolder.test1 -&gt; testfolder.test2) (cyclic-import)

This is due to the fact that the self._excluded_edges
dict was not filled with the imports that need to be
excluded. Passing the line number to the
self.linter.is_message_enabled() check allows to not
prematurely return due to the line number being None.

Also fixed (with the help of rogalski) the test setup which
got confused by the second 'func' in the test function name

9573 of 10474 relevant lines covered (91.4%)

6.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1410.1 (TOXENV=py27) 09 Aug 2017 12:05PM UTC 0
89.54
Travis Job 1410.1
2 1410.2 (TOXENV=py27) 09 Aug 2017 12:06PM UTC 0
89.5
Travis Job 1410.2
3 1410.3 (TOXENV=py33) 09 Aug 2017 12:07PM UTC 0
88.55
Travis Job 1410.3
4 1410.4 (TOXENV=py34) 09 Aug 2017 12:08PM UTC 0
88.62
Travis Job 1410.4
5 1410.5 (TOXENV=py35) 09 Aug 2017 12:08PM UTC 0
88.68
Travis Job 1410.5
6 1410.6 (TOXENV=py36) 09 Aug 2017 12:10PM UTC 0
88.71
Travis Job 1410.6
7 1410.7 (TOXENV=pypy) 09 Aug 2017 12:13PM UTC 0
89.55
Travis Job 1410.7
Source Files on build 1410
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1410
  • 95c14357 on github
  • Prev Build on master (#1409)
  • Next Build on master (#1411)
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