Chore: Configure Flake8 linter
[releng/lftools.git] / .pre-commit-config.yaml
1 ---
2 repos:
3   ###########
4   # General #
5   ###########
6
7   - repo: https://github.com/pre-commit/pre-commit-hooks
8     rev: v4.0.1
9     hooks:
10       - id: trailing-whitespace
11
12   - repo: https://github.com/jorisroovers/gitlint
13     rev: v0.15.1
14     hooks:
15       - id: gitlint
16
17   ##########
18   # Python #
19   ##########
20
21   - repo: https://github.com/ambv/black
22     rev: 21.8b0
23     hooks:
24     - id: black
25
26   - repo: https://github.com/PyCQA/isort
27     rev: 5.9.3
28     hooks:
29       - id: isort
30
31   - repo: https://gitlab.com/pycqa/flake8
32     rev: 3.9.2
33     hooks:
34       - id: flake8
35         args: ["--max-line-length=120"]