ParmaAI copier template for data mining sub-services.
The following steps will get you started with the project.
-
Pre-requisites: to be able to create a new submodule using this template, make sure to comply with the following prerequisites.
- Configure GitHub via an ssh key. Key based authenticated is highly encouraged. See GitHub Docs for more information.
- Please make sure to have an GPG key configured for GitHub. See GitHub Docs for more information.
- Install micromamba, a conda environment management package manager, as described here. Alternatively conda or mamba installations should also work, but are highly discouraged because of their slow performance.
- Install pre-commit, See pre-commit installation
To create a new data mining module, follow below steps:
- Create a new GitHub repository.
Repository name should be in format parma-mining-<module_name>
-
Clone the repository locally and open (cd) it.
-
Activate any micromamba environment with copier installed.
-
If you have a micromamba environment with copier installed, you can activate it.
micromamba activate <env name>
-
Otherwise, you can create a new one and activate it. After you create an environment for the first time, you can reuse it next time.
micromamba create -n copier-env -c conda-forge # create a new environment named copier-env micromamba activate copier-env # activate the environment micromamba install copier -c conda-forge # install copier
-
-
Run copier
copier copy git@github.com:la-famiglia-jst2324/parma-mining-template.git . --trust
-
Optional: Update project with a new copier template version.
copier update --trust
-
-
Deactivate the environment
micromamba deactivate