Skip to content

Commit

Permalink
feat: remove anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Jan 31, 2025
1 parent 8cb86f3 commit 60260f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions conda_forge_tick/recipe_parser/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def _get_yaml_parser(typ="jinja2"):
parser.indent(mapping=2, sequence=4, offset=2)
parser.width = 320
parser.preserve_quotes = True
parser.representer.ignore_aliases = lambda x: True
return parser


Expand Down
6 changes: 5 additions & 1 deletion tests/test_round_trip.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@

def test_round_trip_v0():
myaml = """\
blah: # [unix]
blah: &foo # [unix]
- blah # [osx]
- foo
foo: *foo
"""

fmyaml = """\
blah: # [unix]
- blah # [osx]
- foo
foo:
- blah # [osx]
- foo
"""

with tempfile.TemporaryDirectory() as d:
Expand Down

0 comments on commit 60260f8

Please sign in to comment.