-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
38 lines (38 loc) · 1.25 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
name: Black Linter
exclude: ^.*\b(migrations)\b.*$
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
name: Flake8 syntax errors or undefined names
exclude: ^.*\b(migrations)\b.*$
args: [--count, --select=E9, --select=F63, --select=F7, --select=F82, --show-source, --statistics]
- id: flake8
name: Flake8 exit-zero treats all errors as warnings, the GitHub editor is 127 chars wide
exclude: ^.*\b(migrations)\b.*$
args: [--count, --exit-zero, --max-complexity=10, --max-line-length=127, --statistics]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.11.2'
hooks:
- id: mypy
additional_dependencies:
- types-requests
exclude: ^.*\b(migrations)\b.*$
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]