Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_STORE
tmp/
config.yaml
bin/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/python-poetry/poetry
rev: 1.8.4
rev: 1.8.5
hooks:
- id: poetry-check
- id: poetry-lock
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Please make sure to read and observe our [Governance](./GOVERNANCE.md) docs.

### Install requirements
- Python `3.11`
- poetry `1.8.4` & up
- poetry `1.8.5` & up
- A LLM API key is required to use and test HolmesGPT
- OpenAI's `gpt4-o` is recommended.
- For details see [Getting an API Key](https://github.com/robusta-dev/holmesgpt?tab=readme-ov-file#getting-an-api-key).
Expand Down
49 changes: 35 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@


check:
poetry run pre-commit run -a
##@ Checks
check: poetry
${POETRY} run pre-commit run -a

test-llm-investigate: poetry
${POETRY} run pytest tests/llm/test_investigate.py -n 6 -vv

test-llm-investigate:
poetry run pytest tests/llm/test_investigate.py -n 6 -vv
test-llm-ask-holmes: poetry
${POETRY} run pytest tests/llm/test_ask_holmes.py -n 6 -vv

test-llm-ask-holmes:
poetry run pytest tests/llm/test_ask_holmes.py -n 6 -vv
test-without-llm: poetry
${POETRY} run pytest tests -m "not llm"

test-without-llm:
poetry run pytest tests -m "not llm"
##@ Docs
docs: poetry
${POETRY} run mkdocs serve --dev-addr=127.0.0.1:7000

docs:
poetry run mkdocs serve --dev-addr=127.0.0.1:7000
docs-build: poetry
${POETRY} run mkdocs build

docs-build:
poetry run mkdocs build
docs-strict: poetry
${POETRY} run mkdocs serve --dev-addr=127.0.0.1:7000 --strict

docs-strict:
poetry run mkdocs serve --dev-addr=127.0.0.1:7000 --strict
##@ Dependencies

deps-install: poetry
${POETRY} install

deps-lock: poetry
${POETRY} lock

##@ Tools

POETRY = $(shell pwd)/bin/poetry
POETRY_VERSION = 1.8.5

.PHONY: poetry
poetry: ## Download poetry locally if necessary.
@if [ ! -f $(POETRY) ] || ! $(POETRY) --version | grep -q "$(POETRY_VERSION)"; then \
echo "Installing poetry $(POETRY_VERSION)"; \
curl -sSL https://install.python-poetry.org | POETRY_HOME=$(shell pwd) python3 - --version $(POETRY_VERSION); \
fi
Loading