* auto fixes * auto fix pt2 and transitive deps and undefined var checking locals() * manual fixes (ignored or letta-code fixed) * fix circular import * remove all ignores, add FastAPI rules and Ruff rules * add ty and precommit * ruff stuff * ty check fixes * ty check fixes pt 2 * error on invalid
33 lines
938 B
YAML
33 lines
938 B
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: trufflehog
|
|
name: TruffleHog
|
|
entry: bash -c 'trufflehog git file://. --since-commit HEAD --results=verified,unknown --fail --no-update'
|
|
language: system
|
|
stages: ["pre-commit", "pre-push"]
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.12.11
|
|
hooks:
|
|
- id: ruff-check
|
|
args: [ --fix ]
|
|
- id: ruff-format
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: ty
|
|
name: ty check
|
|
entry: uv run ty check .
|
|
language: python
|