-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐕 Batch: Pre-submission lintern #903
Comments
Is this lint check better suited for ersilia-maintenance? has any work in this direction been done or could this be an entry-level task @miquelduranfrigola and @DhanshreeA ? |
Given that we have plans to simplify the CLI commands, I would definitely not include a We can certainly think of more "tests" or "inspections" to do and come up with a good entry-level task. This is a good idea. |
Plus to add to @miquelduranfrigola 's point, ersilia pack also has a lint built in for newer model contributions. |
Hi @DhanshreeA |
Hi @DhanshreeA I am unsure whether this issue is tackled in independent issues or should remain open. Can you update? Thx |
@GemmaTuron I think we already have a lot done on this front, namely, with the following tools/ersilia commands:
We will have to consolidate functionality across the three of these, however it does not make sense to add another linter into Ersilia. So this issue is redundant at this point. |
Hi @miquelduranfrigola and @DhanshreeA Should we close this model then? |
I'll let @DhanshreeA decide |
Yes, I think it's good to close this issue. We need to only focus on ersilia inspect, test, and the lint command within ersilia-pack (which can be added as a pipeline step on its own) |
This makes sense, @DhanshreeA - thanks |
Summary
Often, small errors like a short title in the metadata will cause the model incorporation workflows to fail. It would be good to identify these errors earlier using a lintern.
Ideally, we would have a command like:
ersilia lint --repo_path $PATH_TO_WIP_MODEL
Objectives
We can potentially check several things in a model repository, including:
metadata.json
fileDockerfile
model/framework
andmodel/checkpoints
foldersLICENSE
I would start with the
metadata.json
file. Most of the heavy lifting has already been done here: https://github.com/ersilia-os/ersilia/blob/master/ersilia/hub/content/card.pyA potential approach would be:
lintern.py
underhub/content/
Lint
with an arbitrary number of methods, includingmetadata
.Lint
class to check that everything is correct in the--repo_path
folder.Do the test as part of an earlier workflow. These are not mutually exclusive
Documentation
The text was updated successfully, but these errors were encountered: