ecmwf / earthkit-hydro

0 stars 0 forks source link

Add dev setup instructions like earthkit-data #1

Open samsammurphy opened 1 year ago

samsammurphy commented 1 year ago

Developer instructions might be something like this (thanks @sandorkertesz )

  1. mamba env create -f environment.yml
  2. pre-commit install
  3. pip install -e . --no-deps

The third instruction will install the python package in the current directory in editable mode (i.e. hot reloading any local changes without needing to reload the package) the no-deps flags asks pip not to install dependencies of the current directory package.

samsammurphy commented 1 year ago

also make it easier to manage Jupyter Notebooks with git

$ nbstripout --install
$ nbdime config-git --enable --global
samsammurphy commented 1 year ago

"Rich Jupyter Notebook Diffs" GitHub feature preview might solve the jupyter notebook <> git problem..

thanks @dtip