From eaed8b0e8f16bf5f819e608e95388f12426cf24f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Alet?= Date: Wed, 16 Mar 2022 15:46:38 +1100 Subject: [PATCH] Add support for additional formatting errors. --- setup.cfg | 2 +- yamlfixer/__init__.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 61e61e0..f8949d1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -version = 0.3.2 +version = 0.3.3 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 e5aec7a..d571287 100755 --- a/yamlfixer/__init__.py +++ b/yamlfixer/__init__.py @@ -10,7 +10,7 @@ import argparse import json -__version__ = "0.3.2" +__version__ = "0.3.3" __author__ = "OPT-NC" __license__ = "GPLv3+" __copyright__ = "Copyright (C) 2021-%s %s" % (time.strftime("%Y", @@ -235,6 +235,8 @@ def fix_linetoolong(self, left, right): # pylint: disable=unused-argument def fix_syntax_mappingvalues_nah(self, left, right): """Fix: - syntax error: mapping values are not allowed here + - syntax error: expected , but found '' + - syntax error: expected , but found '?' """ indentation = self.get_indentation() previndentation = self.get_indentation(-1)