-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
71 lines (64 loc) · 1.69 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
70
71
---
exclude: (^static/|^staticfiles/|^manage.py|^setup.py|^instance)
fail_fast: true
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.1.0"
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: pretty-format-json
args: ["--autofix", "--indent=4", "--no-sort-keys"]
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-xml
- id: requirements-txt-fixer
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
# - id: end-of-file-fixer
- id: fix-encoding-pragma
args: ["--pragma", "# coding=utf-8"]
- id: trailing-whitespace
- repo: "https://github.com/psf/black"
rev: "22.3.0"
hooks:
- id: black
- repo: "https://github.com/PyCQA/isort"
rev: "5.10.1"
hooks:
- id: isort
- repo: "https://github.com/PyCQA/flake8"
rev: "4.0.1"
hooks:
- id: flake8
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
- id: pytest
name: pytest
stages: [commit]
language: system
entry: coverage run -m pytest
types: [python]
always_run: true
pass_filenames: false
- id: pytest-cov
name: pytest
stages: [commit]
language: system
entry: coverage report
types: [python]
always_run: true
pass_filenames: false