This has been tested on Ubuntu 22.04 with Python 3.11 only right now.
- Make sure you have downloaded Ollama (
curl -fsSL https://ollama.com/install.sh | sh
) and thenollama pull codestral
- Create a Python Environment (recommended to use Miniconda)
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
~/miniconda3/bin/conda init bash
conda create -n autocommenter python=3.11
conda activate autocommenter
pip install -r requirements.txt
to install the dependencies for the repo
- Make sure you create a folder called
./codebases
and thengit clone
your repo there.
Just run python python_extractor.py
!
It is recommended to afterwards generate a git branch called documentation
afterwards and then generate pull request to the branch (this will done automatically in future releases)