-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.48 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
# B101 detects usages of assert, even in tests, note that assert may not
# be available in production environments, so if your code relies on
# assert to avoid an insecure routine, it may not be protected.
args: [--skip, "B101"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language: python
types: [python]
args: ["--line-length=80"]
- repo: https://github.com/hadialqattan/pycln
rev: v0.0.1-beta.3
hooks:
- id: pycln
args: ["all = true"]
- repo: https://github.com/pycqa/isort
rev: 5.5.4
hooks:
- id: isort
files: "\\.(py)$"
args: ["--profile", "black", "--line-length", "80"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.16.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]