Skip to content

Commit

Permalink
Moved notes to datatypes module
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningTimm committed Mar 11, 2024
1 parent dfe37cd commit 04235a4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions yml2block/yaml_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,11 @@
from ruamel.yaml import YAML
from ruamel.yaml.constructor import DuplicateKeyError

# from ruamel.yaml.scalarstring import LiteralScalarString, FoldedScalarString, DoubleQuotedScalarString, SingleQuotedScalarString, PlainScalarString
# from ruamel.yaml.scalarint import ScalarInt
# from ruamel.yaml.scalarbool import ScalarBoolean

from yml2block.rules import LintViolation, Level
from yml2block.datatypes import MDBlockList, MDBlockDict, MDBlockNode
from yml2block import validation


# TODO: Implement custom constructor for ruamel yaml
# to get line and colum numbers for leafs in the yaml file
# https://stackoverflow.com/a/45717104


def to_md_block_types(data):
"""This function takes a ruamel YAML struture and wraps its
content into cutsom types that support annotation with line and column
Expand Down

0 comments on commit 04235a4

Please sign in to comment.