mirror of
https://github.com/hanzo-io/chat.git
synced 2026-10-30 18:57:58 +00:00
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
exclude: "node_modules|.git"
|
|
default_stages: [pre-commit]
|
|
fail_fast: false
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
files: "raven.*"
|
|
exclude: ".*json$|.*txt$|.*csv|.*md|.*svg"
|
|
- id: check-yaml
|
|
- id: check-merge-conflict
|
|
- id: check-ast
|
|
- id: check-json
|
|
files: "raven.*"
|
|
- id: check-toml
|
|
- id: debug-statements
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v2.34.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
files: "raven.*"
|
|
args: ["--py310-plus"]
|
|
|
|
- repo: https://github.com/adityahase/black
|
|
rev: 9cb0a69f4d0030cdf687eddf314468b39ed54119
|
|
hooks:
|
|
- id: black
|
|
files: "raven.*"
|
|
additional_dependencies: ["click==8.0.4"]
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 6.0.0
|
|
hooks:
|
|
- id: flake8
|
|
files: "raven.*"
|
|
additional_dependencies: ["flake8-bugbear", "flake8-tuple"]
|
|
args: ["--config", ".github/helper/flake8.conf"]
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
files: "raven.*"
|
|
exclude: ".*setup.py$"
|
|
|
|
ci:
|
|
autoupdate_schedule: weekly
|
|
skip: []
|
|
submodules: false
|