-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.1 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: end-of-file-fixer
- id: debug-statements
- id: trailing-whitespace
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
name: "Format with black"
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: "Sort module imports"
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies:
- flake8-absolute-import
- flake8-blind-except
- flake8-breakpoint
- flake8-bugbear
- flake8-builtins
- flake8-cognitive-complexity
- flake8-comprehensions
- flake8-docstrings
- flake8-eradicate
- flake8-implicit-str-concat
- flake8-mutable
- flake8-print
- flake8-pytest-style
- flake8-simplify
- pep8-naming
args: ["--config=.flake8"]