/ .pre-commit-config.yaml
.pre-commit-config.yaml
 1  repos:
 2    - repo: https://github.com/Lucas-C/pre-commit-hooks
 3      rev: v1.5.4
 4      hooks:
 5        - id: remove-tabs
 6  
 7    - repo: https://github.com/pre-commit/pre-commit-hooks
 8      rev: v4.5.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        - id: check-merge-conflict
18        - id: check-symlinks
19        - id: check-toml
20        - id: check-yaml
21          args: [--allow-multiple-documents]
22        - id: debug-statements
23        - id: detect-private-key
24        - id: end-of-file-fixer
25        - id: trailing-whitespace
26  
27    - repo: https://github.com/psf/black
28      rev: "23.12.0"
29      hooks:
30        - id: black
31          args: ["--line-length=120"]
32  
33    - repo: https://github.com/PyCQA/flake8
34      rev: "6.1.0"
35      hooks:
36        - id: flake8
37          additional_dependencies: ["pep8-naming"]
38          # Ignore all format-related checks as Black takes care of those.
39          args:
40            [
41              "--ignore",
42              "E2,W5,D100,D101",
43              "--select",
44              "E,W,F,N",
45              "--max-line-length=150",
46            ]
47  
48    - repo: https://github.com/pycqa/bandit
49      rev: 1.7.6
50      hooks:
51        - id: bandit
52          args: ["-iii", "-ll"]
53  
54    - repo: https://github.com/pycqa/isort
55      rev: 5.13.2
56      hooks:
57        - id: isort
58          args: ["--resolve-all-configs"]
59  
60    - repo: https://github.com/commitizen-tools/commitizen
61      rev: v3.13.0
62      hooks:
63        - id: commitizen