Skip to content

Commit 0500d4f

Browse files
committed
add julia as an input file option
1 parent e090f76 commit 0500d4f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/somesy/core/core.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88

99
logger = logging.getLogger("somesy")
1010

11-
INPUT_FILES_ORDERED = [".somesy.toml", "somesy.toml", "pyproject.toml", "package.json"]
11+
INPUT_FILES_ORDERED = [
12+
".somesy.toml",
13+
"somesy.toml",
14+
"pyproject.toml",
15+
"package.json",
16+
"Project.toml",
17+
]
1218
"""Input files ordered by priority for discovery."""
1319

1420

@@ -72,7 +78,9 @@ def get_input_content(path: Path, *, no_unwrap: bool = False) -> Dict[str, Any]:
7278
return ret if no_unwrap else ret.unwrap()
7379

7480
# pyproject.toml
75-
if path.suffix == ".toml" and "pyproject" in path.name:
81+
if (
82+
path.suffix == ".toml" and "pyproject" in path.name
83+
) or path.name == "Project.toml":
7684
with open(path, "r") as f:
7785
input_content = tomlkit.load(f)
7886
if "tool" in input_content and "somesy" in input_content["tool"]:

0 commit comments

Comments
 (0)