Compare commits

..

No commits in common. "88bdce16889c8174cb5bbd3fbf2cdaae90fb6a63" and "8f5ce6999f7cbbda8d302ca677f89b83685d6777" have entirely different histories.

4 changed files with 5 additions and 12 deletions

View file

@ -1,9 +1,3 @@
## 0.1.0a22 (2025-11-21)
### Fix
- ExtentionError => ExtensionError
## 0.1.0a21 (2025-11-06)
### Feat

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.output_formatter"
version = "0.1.0a22"
version = "0.1.0a21"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail output formatter"

View file

@ -55,7 +55,6 @@ from rougail.convert.object_model import (
)
from rougail.tiramisu import normalize_family, RENAME_TYPE
from rougail.utils import undefined
from rougail.error import ExtensionError
from .upgrade import RougailUpgrade
from .i18n import _
@ -115,7 +114,7 @@ class RougailOutputFormatter:
rougailconfig["step.output"] = self.output_name
self.rougailconfig = rougailconfig
if self.rougailconfig["step.output"] != self.output_name:
raise ExtensionError(
raise ExtentionError(
_('the "step.output" is not set to "{0}"').format(self.output_name)
)
# yaml.top_level_colon_align = True
@ -164,10 +163,10 @@ class RougailOutputFormatter:
def upgrade(self) -> None:
filenames = self.rougailconfig["main_structural_directories"]
if len(filenames) > 1:
raise ExtensionError(_('only one filename is allowed, not "{0}"').format(filenames))
raise Exception(_("only one file is allowed"))
filename = Path(filenames[0])
if not filename.is_file():
raise ExtensionError(_('"{0}" is not a valid file, but only a file is allowed').format(filename))
raise Exception(_("only a file is allowed"))
self.version_name, self.original_yaml = RougailUpgrade(self.rougailconfig).run(
filename

View file

@ -1 +1 @@
__version__ = "0.1.0a22"
__version__ = "0.1.0a21"