Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bin/terraform_test
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ Options:
import argparse
import os

from hcl2.version import __version__

from hcl2 import load
from hcl2.version import __version__

if __name__ == "__main__":
parser = argparse.ArgumentParser(description="This script recursively converts hcl2 files to json")
Expand Down
3 changes: 1 addition & 2 deletions cli/hcl_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import sys
from typing import IO, List, Optional, TextIO

from hcl2.version import __version__

from cli.helpers import (
EXIT_IO_ERROR,
EXIT_PARSE_ERROR,
Expand All @@ -24,6 +22,7 @@
)
from hcl2 import load
from hcl2.utils import SerializationOptions
from hcl2.version import __version__

_HCL_EXTENSIONS = {".tf", ".hcl"}

Expand Down
3 changes: 1 addition & 2 deletions cli/hq.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import sys
from typing import Any, List, Optional, Tuple

from hcl2.version import __version__

from hcl2.query._base import NodeView
from hcl2.query.body import DocumentView
from hcl2.query.introspect import build_schema, describe_results
Expand All @@ -22,6 +20,7 @@
safe_eval,
)
from hcl2.utils import SerializationOptions
from hcl2.version import __version__

from .helpers import _expand_file_args # noqa: F401 — re-exported for tests

Expand Down
3 changes: 1 addition & 2 deletions cli/json_to_hcl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from io import StringIO
from typing import TextIO

from hcl2.version import __version__

import hcl2
from cli.helpers import (
EXIT_DIFF,
Expand All @@ -29,6 +27,7 @@
from hcl2.formatter import FormatterOptions
from hcl2.query.diff import diff_dicts, format_diff_json, format_diff_text
from hcl2.utils import SerializationOptions
from hcl2.version import __version__


def _json_to_hcl(
Expand Down
Loading