-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.15 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: local
hooks:
- id: todo
name: Check TODO
language: pygrep
entry: WIP
args: [-i]
types: [text]
exclude: ^.pre-commit-config.yaml$
- repo: https://github.com/lovesegfault/beautysh
rev: v6.1.0
hooks:
- id: beautysh
args: [-i, '2']
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args: [-j8, --max-line-length=99, --extend-ignore=P1]
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
- flake8-debugger
- flake8-string-format
- repo: https://github.com/PyCQA/isort
rev: 5.8.0
hooks:
- id: isort
args: [--profile=black, -l=99]
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
args: [-l, '99']