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 ~/miniconda3wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.shbash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3rm -rf ~/miniconda3/miniconda.sh~/miniconda3/bin/conda init bashconda create -n autocommenter python=3.11conda activate autocommenter
pip install -r requirements.txtto install the dependencies for the repo
- Make sure you create a folder called
./codebasesand thengit cloneyour 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)