nonebot-bison/.pre-commit-config.yaml
2022-10-07 01:07:15 +08:00

32 lines
732 B
YAML

ci:
autofix_commit_msg: "auto fix by pre-commit hooks"
autofix_prs: true
autoupdate_branch: dev
autoupdate_schedule: weekly
autoupdate_commit_msg: "auto update by pre-commit hooks"
repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
types_or: [markdown, ts, tsx]
- repo: local
hooks:
- id: admin-eslint
name: eslint
entry: bash -c 'yarn --cwd admin-frontend lint || exit 0'
language: system
pass_filenames: false
exclude: 'CHANGELOG.md'