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

PyCQA / pylint / 2842 / 10
92%
main: 95%

Build:
Build:
LAST BUILD BRANCH: maintenance/2.15.x
DEFAULT BRANCH: main
Ran 21 Dec 2018 08:23AM UTC
Files 55
Run time 3s
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

21 Dec 2018 08:08AM UTC coverage: 89.188% (+0.008%) from 89.18%
TOXENV=pypy

push

travis-ci

PCManticore
Generalize `chained-comparison` (#2655)

`chained-comparison` detects boolean expressions such as `a < b and b < c` and suggests
it should be rewritten as `a < b < c`.

The current implementation is limited in two ways. First, cannot deal with existing chain
comparisons, so it would not detect the following:
    `a < b < c and c < d` # should be a < b < c < d

Second, the algorithm for detecting possible chains is simplistic, and would falsely
detect the following:

    `a < b < c and b < d` # no simplification possible

This change fixes both of these issues.

10385 of 11644 relevant lines covered (89.19%)

0.89 hits per line

Source Files on job 2842.10 (TOXENV=pypy)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2466
  • Travis Job 2842.10
  • 5a86fddc on github
  • Prev Job for TOXENV=pypy on master (#2839.10)
  • Next Job for TOXENV=pypy on master (#2849.10)
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