You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Please run command `pre-commit install` to install pre-commit hook
|
|
|
|
repos:
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: python-fmt
|
|
|
|
name: Python Format
|
|
|
|
entry: make fmt-check
|
|
|
|
language: system
|
|
|
|
exclude: '^dbgpt/app/static/|^web/'
|
|
|
|
types: [python]
|
|
|
|
stages: [commit]
|
|
|
|
pass_filenames: false
|
|
|
|
args: []
|
|
|
|
- id: python-test
|
|
|
|
name: Python Unit Test
|
|
|
|
entry: make test
|
|
|
|
language: system
|
|
|
|
exclude: '^dbgpt/app/static/|^web/'
|
|
|
|
types: [python]
|
|
|
|
stages: [commit]
|
|
|
|
pass_filenames: false
|
|
|
|
args: []
|
|
|
|
- id: python-test-doc
|
|
|
|
name: Python Doc Test
|
|
|
|
entry: make test-doc
|
|
|
|
language: system
|
|
|
|
exclude: '^dbgpt/app/static/|^web/'
|
|
|
|
types: [python]
|
|
|
|
stages: [commit]
|
|
|
|
pass_filenames: false
|
|
|
|
args: []
|
|
|
|
- id: python-lint-mypy
|
|
|
|
name: Python Lint mypy
|
|
|
|
entry: make mypy
|
|
|
|
language: system
|
|
|
|
exclude: '^dbgpt/app/static/|^web/'
|
|
|
|
types: [python]
|
|
|
|
stages: [commit]
|
|
|
|
pass_filenames: false
|
|
|
|
args: []
|
|
|
|
|