See here for more complete documentation
This repo has not yet been added to PyPI. See the developer installation below.
-
If you plan on making pull requests, fork the repo to your own github account
-
git clone the repo (possibly your fork)
-
If you cloned your fork, add the BrentLab repo as your
upstreamremotegit remote add upstream https://github.com/BrentLab/tfbpmodeling.git
-
-
cdinto your local repo -
poetry installto install the dependencies. If you don't have poetry, see the poetry instructions below. -
Install pre-commit hooks. If you do not have pre-commit, install it first. Then run:
pre-commit install
When adding/refactoring code, please make sure that you do so in a feature
branch that is branched from dev. Please keep your dev up to date by
rebasing it onto main after pulling from upstream/main. Similarly, keep
your feature branch up to date with dev by rebasing your dev branch onto
upstream/dev, and then rebasing your feature branch onto dev. This will
help avoid merge conflicts when you make a pull request.
When you are ready to make a pull request, please make sure that the pre-commit hooks all pass locally. You can run pre-commit manually (before committing) with:
pre-commit run --all-filesif you properly installed the pre-commit hooks, pre-commit will automatically run when you attempt to make a commit, also.
There is a [tmp/] directory set up for exploratory data analysis and
interactive development. See the tmp/README.md
for more information. ipykernel is installed in the dev environment,
so jupyter notebooks can be run from tmp/ in the virtual environment.
To install poetry, follow the instructions here.
I prefer setting the following configuration option so that virtual environments are installed in the project directory:
poetry config virtualenvs.in-project trueSo that the virtual environments are installed in the project directory as .venv
After cloning and cding into the repo, you can install the dependencies with:
poetry installThe documentation is build with mkdocs:
mkdocs new [dir-name]- Create a new project.mkdocs serve- Start the live-reloading docs server.mkdocs build- Build the documentation site.mkdocs -h- Print help message and exit.
- mkdocs.yml # The configuration file.
- docs/
- index.md # The documentation homepage.
- ... # Other markdown pages, images and other files.
To update the gh-pages documentation, use poetry run mkdocs gh-deply