From 3d381a60f02db419f6630a25b984efa705066901 Mon Sep 17 00:00:00 2001 From: Brandon Beiler Date: Sun, 20 Apr 2025 20:25:59 -0400 Subject: [PATCH] Feature: Configuring OpenAI-Compatible (LiteLLM) Models (#2166) Co-authored-by: bbeiler --- CONTRIBUTING.md | 13 ++++ README.md | 18 +++++- docs/development.mdx | 66 ++++++++++++++++++++ setup.sh | 33 ++++++++++ skyvern/cli/commands.py | 33 ++++++++++ skyvern/config.py | 14 +++++ skyvern/forge/sdk/api/llm/config_registry.py | 42 +++++++++++++ 7 files changed, 217 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2b9578c2..84cfd81d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,6 +16,7 @@ - [Your First Code Contribution](#your-first-code-contribution) - [Improving The Documentation](#improving-the-documentation) - [Styleguides](#styleguides) + - [Pre Commit Hooks](#pre-commit-hooks) - [Commit Messages](#commit-messages) - [Join The Project Team](#join-the-project-team) - [Attribution](#attribution) @@ -170,6 +171,18 @@ Updating, improving and correcting the documentation --> ## Styleguides + +### Pre Commit Hooks +Make sure to run the pre-commit hooks before committing your code. +This will help you to automatically format your code and catch cicd failures early. +```bash +# Make sure `pre-commit` is installed +pip install pre-commit + +# Run pre-commit hooks on files in your commit +pre-commit run --all-files +``` + ### Commit Messages