From 0ec1ff44ed3adc8d4b0f1ee8c38d8e9d27415893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Alet?= Date: Wed, 16 Mar 2022 10:21:32 +1100 Subject: [PATCH] fix. Remove unnecessary spaces from status in json summary. Closes #30. --- setup.cfg | 2 +- yamlfixer/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 8d4c184..61e61e0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -version = 0.3.1 +version = 0.3.2 name = yamlfixer-opt-nc description = automates the fixing of problems reported by yamllint long_description = file: README.md diff --git a/yamlfixer/__init__.py b/yamlfixer/__init__.py index 451fc41..e5aec7a 100755 --- a/yamlfixer/__init__.py +++ b/yamlfixer/__init__.py @@ -10,7 +10,7 @@ import argparse import json -__version__ = "0.3.1" +__version__ = "0.3.2" __author__ = "OPT-NC" __license__ = "GPLv3+" __copyright__ = "Copyright (C) 2021-%s %s" % (time.strftime("%Y", @@ -424,7 +424,7 @@ def statistics(self): "details": {}, } for (status, filename, issues, handled) in self.summary: - summarymapping["details"][filename] = {"status": status, + summarymapping["details"][filename] = {"status": status.strip(), "issues": issues, "handled": handled, }