We welcome contributions to this project.
Please do not commit directly to the main
branch.
Instead, create a new branch for your changes and submit a pull request.
-
Clone the repository
git clone https://github.com/rendeirolab/LazySlide.git # or gh repo clone rendeirolab/LazySlide
-
Checkout a new branch
git checkout -b my-new-branch
-
Create a new environment and install the dependencies
mamba create -n lazyslide python==3.11 conda activate lazyslide mamba install -c conda-forage openslide-python pip install -e '.[dev,all]'
We use pre-commit to run code formatting and linting checks before each commit.
pip install pre-commit pre-commit install
-
Make your changes
-
(If needed) Add a test case and then run the tests
pytest tests
-
(If needed) Update the documentation
cd docs make clean html # Launch a local server to view the documentation python -m http.server -d build/html
Open your browser and navigate to
http://localhost:8000
-
Commit your changes and push them to your fork
-
Submit a pull request