Bai360/Cotton2
0
1# Define hooks for code formations2# Will be applied on any updated commit files if a user has installed and linked commit hook3 4default_language_version:5 python: python3.86 7# Define bot property if installed via https://github.com/marketplace/pre-commit-ci8ci:9 autofix_prs: true10 autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'11 autoupdate_schedule: monthly12 # submodules: true13 14repos:15 - repo: https://github.com/pre-commit/pre-commit-hooks16 rev: v4.4.017 hooks:18 # - id: end-of-file-fixer19 - id: trailing-whitespace20 - id: check-case-conflict21 - id: check-yaml22 - id: check-toml23 - id: pretty-format-json24 - id: check-docstring-first25 26 - repo: https://github.com/asottile/pyupgrade27 rev: v3.3.028 hooks:29 - id: pyupgrade30 name: Upgrade code31 args: [ --py37-plus ]32 33 - repo: https://github.com/PyCQA/isort34 rev: 5.10.135 hooks:36 - id: isort37 name: Sort imports38 39 - repo: https://github.com/pre-commit/mirrors-yapf40 rev: v0.32.041 hooks:42 - id: yapf43 name: YAPF formatting44 45 - repo: https://github.com/executablebooks/mdformat46 rev: 0.7.1647 hooks:48 - id: mdformat49 name: MD formatting50 additional_dependencies:51 - mdformat-gfm52 - mdformat-black53 exclude: "README.md|README.zh-CN.md"54 55 - repo: https://github.com/asottile/yesqa56 rev: v1.4.057 hooks:58 - id: yesqa59 60 - repo: https://github.com/PyCQA/flake861 rev: 6.0.062 hooks:63 - id: flake864 name: PEP865 