Azure-Samples / ai-rag-chat-evaluator

Tools for evaluation of RAG Chat Apps using Azure AI Evaluate SDK and OpenAI
MIT License
163 stars 59 forks source link

Check for git directory before pre-commit #16

Closed pamelafox closed 5 months ago

pamelafox commented 5 months ago

Purpose

Fixes #2

As of a week ago, dev containers have started throwing errors for calling pre-commit install when not in a git repository. This hopefully fixes it, since it checks for .git directory before calling pre-commit.

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type

What kind of change does this Pull Request introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe: