mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
0c862e97a6
* feat: Add ChatKit integration with a new frontend application - Created a new frontend application using React and Vite for the ChatKit integration. - Added essential files including package.json, vite.config.ts, and Tailwind CSS configuration. - Implemented core components: App, Home, ChatKitPanel, ThemeToggle, and hooks for color scheme management. - Established SQLite-based store implementation for ChatKit data persistence in store.py. - Integrated theme toggling functionality for light and dark modes. - Set up ESLint and TypeScript configurations for better development experience. * git ignore * fix mypy * add mising file * minimal frontend for chatkit sample * update ignore files * version * set python version lowerbound on chatkit * update project settings for chatkit * update setup * update setup * update setup * update setup * weather widget * add select city widget sample * remove widget helper * update chatkit to include file attachments and cover more thread item types * update readme with mermaid diagram * update diagram * update instructions * update chatkit dependency * fix converter imports * move to demos/ * move to demos/ -- rename references * support multiple session instead of using global variable in sample * support chunk streaming * fix tests * Update python/samples/demos/chatkit-integration/store.py Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com> * use local host --------- Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
67 lines
2.1 KiB
YAML
67 lines
2.1 KiB
YAML
files: ^python/
|
|
fail_fast: true
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-toml
|
|
name: Check TOML files
|
|
files: \.toml$
|
|
exclude: ^python/packages/lab/cookiecutter-agent-framework-lab/
|
|
- id: check-yaml
|
|
name: Check YAML files
|
|
files: \.yaml$
|
|
- id: check-json
|
|
name: Check JSON files
|
|
files: \.json$
|
|
exclude: ^.*\.vscode\/.*|^python/demos/samples/chatkit-integration/frontend/(tsconfig.*\.json|package-lock\.json)$
|
|
- id: end-of-file-fixer
|
|
name: Fix End of File
|
|
files: \.py$
|
|
exclude: ^python/packages/lab/cookiecutter-agent-framework-lab/
|
|
- id: mixed-line-ending
|
|
name: Check Mixed Line Endings
|
|
files: \.py$
|
|
exclude: ^python/packages/lab/cookiecutter-agent-framework-lab/
|
|
- id: check-ast
|
|
name: Check Valid Python Samples
|
|
types: ["python"]
|
|
exclude: ^python/packages/lab/cookiecutter-agent-framework-lab/
|
|
- repo: https://github.com/nbQA-dev/nbQA
|
|
rev: 1.9.1
|
|
hooks:
|
|
- id: nbqa-check-ast
|
|
name: Check Valid Python Notebooks
|
|
types: ["jupyter"]
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.20.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
name: Upgrade Python syntax
|
|
args: [--py310-plus]
|
|
exclude: ^python/packages/lab/cookiecutter-agent-framework-lab/
|
|
- repo: local
|
|
hooks:
|
|
- id: poe-check
|
|
name: Run checks through Poe
|
|
entry: uv --directory ./python run poe pre-commit-check
|
|
language: system
|
|
files: ^python/
|
|
pass_filenames: false
|
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
# uv version.
|
|
rev: 0.7.18
|
|
hooks:
|
|
# Update the uv lockfile
|
|
- id: uv-lock
|
|
name: Update uv lockfile
|
|
files: python/pyproject.toml
|
|
args: [--project, python]
|
|
- repo: https://github.com/PyCQA/bandit
|
|
rev: 1.8.5
|
|
hooks:
|
|
- id: bandit
|
|
name: Bandit Security Checks
|
|
args: ["-c", "python/pyproject.toml"]
|
|
additional_dependencies: ["bandit[toml]"]
|