-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
45 lines (41 loc) · 1.04 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
# To install the git pre-commit hook run:
# pre-commit install
# To update the pre-commit hooks run:
# pre-commit autoupdate
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: debug-statements
- id: check-yaml
name: Check YAML
- id: check-toml
name: Check TOML$
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files", "--skip-gitignore"]
- repo: https://github.com/ambv/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
args: ["-r"]
files: ^(osp)/.*
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
args: ["--rcfile=.pylintrc", "--extension-pkg-whitelist='pydantic'"]
language: python
types: [python]
require_serial: true
files: ^(osp)/.*