-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
69 lines (68 loc) · 1.9 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
exclude: "docs|.git|.tox"
default_stages: [commit]
default_language_version:
python: python3.9
fail_fast: false
repos:
- repo: local
hooks:
- id: black
name: black
language: system
entry: black
args: ["--preview"]
types: [python]
- id: flake8
name: flake8
language: python
entry: flake8p
args: ["service_oriented", "service_oriented_test"]
types: [python]
additional_dependencies:
- darglint
- dlint
- flake8-comprehensions
- flake8-eradicate
- flake8-spellcheck
- flake8-typing-imports
- mccabe
- pep8-naming
- id: mypy
name: Mypy check
entry: mypy
language: system
args: ["service_oriented", "service_oriented_test"]
pass_filenames: false
- id: isort
name: isort
entry: isort
args: ["service_oriented", "service_oriented_test"]
language: system
- id: safety-production-dependencies-check
name: Safety production dependencies check
entry: safety
args: [check, --policy-file=.safety-policy.yml, --full-report, --file]
language: system
files: requirements.txt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
exclude: README.md
- id: check-docstring-first
- id: debug-statements
- id: name-tests-test
args: ["--pytest-test-first"]
exclude: factories.py
- id: requirements-txt-fixer
- id: check-yaml
args: ["--allow-multiple-documents"]
- id: check-toml
- id: check-json
- id: check-case-conflict
- id: check-merge-conflict
- id: detect-private-key
- id: check-ast
- id: check-symlinks