mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
8c84320b4b
* Add initial skeleton of package, including tooling setup and CI * update workflow * update uv * add bandit
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
fail_fast: true
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
- id: check-toml
|
|
files: \.toml$
|
|
- id: check-yaml
|
|
files: \.yaml$
|
|
- id: check-json
|
|
files: \.json$
|
|
- id: end-of-file-fixer
|
|
files: \.py$
|
|
- id: mixed-line-ending
|
|
files: \.py$
|
|
- id: check-ast
|
|
name: Check Valid Python Samples
|
|
types: ["python"]
|
|
- repo: https://github.com/nbQA-dev/nbQA
|
|
rev: 1.8.5
|
|
hooks:
|
|
- id: nbqa-check-ast
|
|
name: Check Valid Python Notebooks
|
|
types: ["jupyter"]
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.17.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [--py310-plus]
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.9.6
|
|
hooks:
|
|
- id: ruff
|
|
args: [ --fix, --exit-non-zero-on-fix ]
|
|
- id: ruff-format
|
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
# uv version.
|
|
rev: 0.7.2
|
|
hooks:
|
|
# Update the uv lockfile
|
|
- id: uv-lock
|
|
files: python/pyproject.toml
|
|
args: [--project, python]
|
|
- repo: https://github.com/RobertCraigie/pyright-python
|
|
rev: v1.1.400
|
|
hooks:
|
|
- id: pyright
|