* uv migration smaller runners, freeze test runs, remove dev, ruff,hatchling, previw, poetry, generates wheel, installs wheel, docker * fix tests and dependency groups * test fixes * test fixing and main * resolve merge conflict * dev + test dependency group * Test * trigger CI * trigger CI * add debugging info * trigger CI * uv for reusable and sdk preview * resolve mc and reformat black * staged-api * mypy * fix fern * prod Dockerfile * model sweep, and project.toml and uvlock * --group test -> --extra dev * remove redundant --extra dev and rename tests to dev * sdk backwards compat install sqlite * install sqlite group for sdk-backwards-compat * install uv on gh runner for cloud-api-integration-tests * stage+publish * pytest asyncio * bug causing pytest package to get removed * try to fix async event loop issues * migrate to --with google-cloud-secret-manager --------- Co-authored-by: Kian Jones <kian@letta.com>
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.3.0
|
|
hooks:
|
|
- id: check-yaml
|
|
exclude: 'docs/.*|tests/data/.*|configs/.*|helm/.*'
|
|
- id: end-of-file-fixer
|
|
exclude: 'docs/.*|tests/data/.*|letta/server/static_files/.*|.*/.*\.(scss|css|html)'
|
|
- id: trailing-whitespace
|
|
exclude: 'docs/.*|tests/data/.*|letta/server/static_files/.*'
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: autoflake
|
|
name: autoflake
|
|
entry: bash -c '[ -d "apps/core" ] && cd apps/core; uv 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: bash -c '[ -d "apps/core" ] && cd apps/core; uv run isort --profile black .'
|
|
language: system
|
|
types: [python]
|
|
exclude: ^docs/
|
|
- id: black
|
|
name: black
|
|
entry: bash -c '[ -d "apps/core" ] && cd apps/core; uv run black --line-length 140 --target-version py310 --target-version py311 .'
|
|
language: system
|
|
types: [python]
|
|
exclude: ^docs/
|