mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: package setup with logger (#125)
* package setup with logger * set config once * add unit test workflow * updated naming of workflows * add mypy check * renamed job * smaller name * ignore certain files for ruff * remove assignment * fix ruff config * removed pyright from pre-commit * fixed logging test * fix mypy setup * mypy fix * mypy * mypy
This commit is contained in:
committed by
GitHub
Unverified
parent
0c61aee8e5
commit
7cc29fe192
@@ -1,7 +1,7 @@
|
||||
fail_fast: true
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
rev: v5.0.0
|
||||
hooks:
|
||||
- id: check-toml
|
||||
files: \.toml$
|
||||
@@ -17,31 +17,34 @@ repos:
|
||||
name: Check Valid Python Samples
|
||||
types: ["python"]
|
||||
- repo: https://github.com/nbQA-dev/nbQA
|
||||
rev: 1.8.5
|
||||
rev: 1.9.1
|
||||
hooks:
|
||||
- id: nbqa-check-ast
|
||||
name: Check Valid Python Notebooks
|
||||
types: ["jupyter"]
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.17.0
|
||||
rev: v3.20.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py310-plus]
|
||||
- id: pyupgrade
|
||||
args: [--py310-plus]
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.9.6
|
||||
rev: v0.12.1
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [ --fix, --exit-non-zero-on-fix ]
|
||||
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
|
||||
rev: 0.7.18
|
||||
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
|
||||
# TODO: add pyright through poe like in AG
|
||||
- repo: https://github.com/PyCQA/bandit
|
||||
rev: 1.8.5
|
||||
hooks:
|
||||
- id: pyright
|
||||
- id: bandit
|
||||
args: ["-c", "python/pyproject.toml"]
|
||||
additional_dependencies: ["bandit[toml]"]
|
||||
|
||||
Reference in New Issue
Block a user