It’s recommended to set up a local development environment to build and test before you submit a PR.
Run following commands to format your code before submit:
# Choose a base dir (~/vllm-project/) and set up venv
cd ~/vllm-project/
python3 -m venv .venv
source ./.venv/bin/activate
# Clone UCM and install
git clone https://github.com/ModelEngine-Group/unified-cache-management.git
cd unified-cache-management
# Install lint requirement and enable pre-commit hook
pip install -r requirements-lint.txt
# Run lint (You need install pre-commits deps via proxy network at first time)
bash format.shRun unit test locally with following command:
python3 -m unittest discover -s test