/ .pre-commit-config.yaml
.pre-commit-config.yaml
1 repos: 2 - repo: https://github.com/pre-commit/pre-commit-hooks 3 rev: v4.4.0 4 hooks: 5 - id: check-symlinks 6 - id: destroyed-symlinks 7 - id: mixed-line-ending 8 args: [ --fix=lf ] 9 10 - repo: https://github.com/asottile/pyupgrade 11 rev: v3.1.0 12 hooks: 13 - id: pyupgrade 14 args: 15 - --py37-plus 16 17 - repo: https://github.com/astral-sh/ruff-pre-commit 18 rev: 'v0.0.278' 19 hooks: 20 - id: ruff 21 args: [ "--fix", "--fixable=ALL", "--exit-non-zero-on-fix" ] 22 23 - repo: https://github.com/codespell-project/codespell 24 rev: v2.2.1 25 hooks: 26 - id: codespell 27 exclude: tests/ 28 args: 29 - --ignore-words-list="bloaded,nto,pullrequest,pullrequests,thi,tim,wan,Wan,chang,Chang" 30 - --quiet-level=2 31 32 - repo: https://github.com/psf/black 33 rev: 23.3.0 34 hooks: 35 - id: black