metrics: support TOML files#7965
Conversation
There was a problem hiding this comment.
Not blocker of this P.R. but I think we are repeating these same 3 lines in a few places
There was a problem hiding this comment.
Yes, It'd be nice to refactor this. But there's two main ways the suffix is obtained: fs.path.suffix(fs_path) and os.path.splitext(fs_path). Is it safe to assume they are and always will be equivalent? Should one be preferred over the other?
There was a problem hiding this comment.
Is it safe to assume they are and always will be equivalent? Should one be preferred over the other?
I think it would always be the same. Anyhow, I think we can leave that out of this P.R.
|
It would be nice to update docs (i.e. https://dvc.org/doc/command-reference/metrics#supported-file-formats) |
|
Docs PR: #7965 |
|
@alexmojaki Could you |
|
Thanks @alexmojaki ! |
…7983) Following up on #7965 (comment) Co-authored-by: David de la Iglesia Castro <daviddelaiglesiacastro@gmail.com>
Fixes #6402
I haven't forbidden
.pyfiles as suggested there because it just seemed like it would clutter the code more than it would add any real value, but I can do so if requested.❗ I have followed the Contributing to DVC checklist.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.