diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2013-05-07 10:03:06 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2013-05-07 10:03:06 +0200 |
commit | 8128c90078222725094ee5cf1020676ff8694283 (patch) | |
tree | 65191d22ded3826372d9d37130ce024a4043bcfd | |
parent | 0f4fb563ee488fd7b67ae41e75f82fb18f82c56d (diff) | |
download | pylint-git-8128c90078222725094ee5cf1020676ff8694283.tar.gz |
add delta to comparison with note from previous execution
as suggested by Sébastien Celles
-rw-r--r-- | lint.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -737,8 +737,9 @@ This is used by the global evaluation report (RP0004).'}), else: stats['global_note'] = note msg = 'Your code has been rated at %.2f/10' % note - if 'global_note' in previous_stats: - msg += ' (previous run: %.2f/10)' % previous_stats['global_note'] + pnote = previous_stats.get('global_note') + if pnote is not None: + msg += ' (previous run: %.2f/10, %+.2f)' % (pnote, note - pnote) if self.config.comment: msg = '%s\n%s' % (msg, config.get_note_message(note)) sect.append(Text(msg)) |