/ .pre-commit-config.yaml
.pre-commit-config.yaml
1 repos: 2 - repo: https://github.com/Lucas-C/pre-commit-hooks 3 rev: v1.5.5 4 hooks: 5 - id: remove-tabs 6 7 - repo: https://github.com/pre-commit/pre-commit-hooks 8 rev: v4.6.0 9 hooks: 10 - id: check-added-large-files 11 args: ["--maxkb=2048"] 12 - id: check-ast 13 - id: fix-byte-order-marker 14 - id: check-case-conflict 15 - id: check-docstring-first 16 - id: check-json 17 exclude: ^.+(launch|devcontainer)\.json$ 18 - id: check-merge-conflict 19 - id: check-symlinks 20 - id: check-toml 21 - id: check-yaml 22 args: [--allow-multiple-documents] 23 - id: debug-statements 24 - id: detect-private-key 25 - id: end-of-file-fixer 26 - id: trailing-whitespace 27 28 - repo: https://github.com/psf/black 29 rev: "24.4.2" 30 hooks: 31 - id: black 32 args: ["--line-length=120"] 33 34 - repo: https://github.com/PyCQA/flake8 35 rev: "7.1.0" 36 hooks: 37 - id: flake8 38 additional_dependencies: ["pep8-naming"] 39 # Ignore all format-related checks as Black takes care of those. 40 args: 41 [ 42 "--ignore", 43 "E2,W5,D100,D101", 44 "--select", 45 "E,W,F,N", 46 "--max-line-length=150", 47 ] 48 49 - repo: https://github.com/pycqa/bandit 50 rev: 1.7.9 51 hooks: 52 - id: bandit 53 args: ["-iii", "-ll"] 54 55 - repo: https://github.com/pycqa/isort 56 rev: 5.13.2 57 hooks: 58 - id: isort 59 args: ["--resolve-all-configs"] 60 61 - repo: https://github.com/commitizen-tools/commitizen 62 rev: v3.27.0 63 hooks: 64 - id: commitizen