-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.11 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
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: black
name: Black
entry: poetry run black
language: system
types: ['python']
- id: isort
name: isort
entry: poetry run isort
language: system
types: ['python']
- id: safety
name: Safety
# Ignore pip vulnerability
entry: poetry run safety check --full-report
pass_filenames: false
language: system
- id: mypy
name: MyPy
entry: poetry run mypy --install-types --non-interactive
language: system
types: ['python']
exclude: ^tests
- id: pylint
name: Pylint
entry: poetry run pylint --rcfile=.python-lint
language: system
types: ['python']
exclude: ^tests
- id: flake8
name: Flake8
entry: poetry run flake8
language: system
types: ['python']
exclude: ^tests