mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-16 14:40:56 +00:00
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: lcx01800250 <lcx01800250@alibaba-inc.com> Co-authored-by: licunxing <864255598@qq.com> Co-authored-by: Aralhi <xiaoping0501@gmail.com> Co-authored-by: xuyuan23 <643854343@qq.com> Co-authored-by: aries_ckt <916701291@qq.com> Co-authored-by: hzh97 <2976151305@qq.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
# 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: []
|
|
|