Skip to content

VisiumCH/crowd-programming-workshop-202404

Repository files navigation

README

CI

Set up your development environment and run the DVC pipeline

The python environment is managed with pipenv. You can set up your environment and run the DVC pipeline with the following steps:

  • Run pipenv lockto generate the Pipfile.lock which lists the version of your python packages.
  • Run pipenv install --dev to actually create a virtual environment and install the python packages. The flag --dev allows to install the development packages (for linting, ...).
  • Run pipenv shell to activate your python environment!
  • Run pre-commit install to install pre-commits and make sure visiumlint is run at every commit.
  • Finally run dvc repro to execute the complete pipeline! You can also execute a single step and its dependencies with dvc repro <step_name>.

Some tips about pipenv

Deploy in production

Note that when deploying your code in production, you should not install the dev package, it is preferred to run the following command: pipenv install --system --deploy.

Git with pipenv

Make sure to commit the Pipfile.lock in git. It will make your code more reproducible because other developers could install the exact same python packages as you used.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages