Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

ci: make pre-commit oss compatible (#841)

cthomase37d41d3181d
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 53f5d73ad..ceaecce43 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -13,18 +13,18 @@ repos:
hooks:
- id: autoflake
name: autoflake
- entry: poetry run autoflake --remove-all-unused-imports --remove-unused-variables --in-place --recursive --ignore-init-module-imports .
+ entry: bash -c '[ -d "apps/core" ] && cd apps/core; poetry run autoflake --remove-all-unused-imports --remove-unused-variables --in-place --recursive --ignore-init-module-imports .'
language: system
types: [python]
- id: isort
name: isort
- entry: poetry run isort --profile black .
+ entry: bash -c '[ -d "apps/core" ] && cd apps/core; poetry run isort --profile black .'
language: system
types: [python]
exclude: ^docs/
- id: black
name: black
- entry: poetry run black --line-length 140 --target-version py310 --target-version py311 .
+ entry: bash -c '[ -d "apps/core" ] && cd apps/core; poetry run black --line-length 140 --target-version py310 --target-version py311 .'
language: system
types: [python]
exclude: ^docs/