This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
88 lines (79 loc) · 2.42 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
default_stages: [commit]
repos:
- repo: https://github.com/Trim21/pre-commit-hooks
rev: c37e29c1e823c5ce25cac879a0aa7fd63d387c25 # frozen: v0.0.1
hooks:
- id: yamlfmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: e1668fe86af3810fbca72b8653fe478e66a0afdc # frozen: v3.2.0
hooks:
- id: check-case-conflict
exclude: .*\.csv
- id: check-ast
exclude: .*\.csv
- id: check-builtin-literals
exclude: .*\.csv
- id: check-byte-order-marker
exclude: .*\.csv
- id: check-toml
- id: check-yaml
- id: check-json
- id: check-docstring-first
- id: check-merge-conflict
exclude: .*\.csv
- id: check-added-large-files # check for file bigger than 500kb
exclude: .*\.csv
- id: debug-statements
- id: trailing-whitespace
exclude: .*\.csv
- id: mixed-line-ending
args: [--fix=lf]
exclude: .*\.csv
- id: end-of-file-fixer
exclude: .*\.csv
- id: fix-encoding-pragma
args: [--remove]
- repo: https://github.com/timothycrosley/isort
rev: 377d260ffa6f746693f97b46d95025afc4bd8275 # frozen: 5.4.2
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: f766c29ec4bb6cf2674b81959871e59d5400380a # frozen: v2.7.2
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/myint/autoflake
rev: 7a53fdafc82c33f446915b60fcac947c51279260 # frozen: v1.4
hooks:
- id: autoflake
args:
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports
- --expand-star-imports
- repo: https://github.com/PyCQA/doc8.git
rev: db40a1a30521b00e0c47b5095d9dcef39412919d # frozen: 0.9.0a0
hooks:
- id: doc8
name: Check rst file
args: [--max-line-length=88]
files: \.rst$
- repo: https://github.com/psf/black
rev: 712f8b3
hooks:
- id: black
- repo: https://github.com/commitizen-tools/commitizen
rev: debe2cede5b9515024c1184059c6aac811ea3adc # frozen: v2.1.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
args:
- --ignore=C0103,C0111,R0903,W503,W504,C812,C813,C815,C819,B008,E265,E501
- --max-line-length=88