diff options
author | hippo91 <guillaume.peillex@gmail.com> | 2021-04-08 18:58:43 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-09 18:45:30 +0200 |
commit | fc402b7a625edbaec6e83058272bfc817a3bbd48 (patch) | |
tree | f1b86b634b703e0369ccbea37b8ec51c591c1310 /pylint/checkers/__init__.py | |
parent | cdaf4bb2496f9e5c7d8351d0f25bffe8db7ef73a (diff) | |
download | pylint-git-fc402b7a625edbaec6e83058272bfc817a3bbd48.tar.gz |
Setup formatting of new and old scores
Diffstat (limited to 'pylint/checkers/__init__.py')
-rw-r--r-- | pylint/checkers/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/__init__.py b/pylint/checkers/__init__.py index 35831e4c4..778b710f9 100644 --- a/pylint/checkers/__init__.py +++ b/pylint/checkers/__init__.py @@ -59,13 +59,13 @@ def table_lines_from_stats(stats, old_stats, columns): lines = [] for m_type in columns: new = stats[m_type] - new = "%.3f" % new if isinstance(new, float) else str(new) old = old_stats.get(m_type) if old is not None: diff_str = diff_string(old, new) - old = format(old) else: old, diff_str = "NC", "NC" + new = "%.3f" % new if isinstance(new, float) else str(new) + old = "%.3f" % old if isinstance(old, float) else str(old) lines += (m_type.replace("_", " "), new, old, diff_str) return lines |