Skip to content

A programming framework for agentic AI

mypy in pre-commit fixed (#2117)

Davor Runjefafc29eeef56
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3f4880794..025cc7cbb 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -53,7 +53,7 @@ repos:
language: python
# use your preferred Python version
# language_version: python3.8
- additional_dependencies: [".[types]"]
+ additional_dependencies: []
types: [python]
# use require_serial so that script
# is only called once per commit
diff --git a/scripts/pre-commit-mypy-run.sh b/scripts/pre-commit-mypy-run.sh
index 49a14e083..1e2bd7beb 100755
--- a/scripts/pre-commit-mypy-run.sh
+++ b/scripts/pre-commit-mypy-run.sh
@@ -10,4 +10,6 @@ set -o errexit
# Change directory to the project root directory.
cd "$(dirname "$0")"/..
+pip install -q -e .[types]
+
mypy