-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (47 loc) · 1.38 KB
/
.pre-commit-config.yaml
File metadata and controls
51 lines (47 loc) · 1.38 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: ^.*migrations/versions
repos:
- repo: https://github.com/timothycrosley/isort
rev: 6.0.1
hooks:
- id: isort
exclude: ^.*migrations/versions
args: [
"--line-length=120","--profile=black"
]
- repo: https://github.com/ambv/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.1.2
hooks:
- id: flake8
args: [ "--max-line-length=120", "--per-file-ignores=*/__init__.py: F401"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
- id: detect-aws-credentials
args: [ "--allow-missing-credentials" ]
- id: detect-private-key
- id: fix-byte-order-marker
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pycqa/pylint
rev: v3.3.6
hooks:
- id: pylint
args: ["--output-format", "parseable", "-d", "W0511", "-j", "4"]
- repo: https://github.com/PyCQA/bandit
rev: 1.8.3
hooks:
- id: bandit