forked from martis42/depend_on_what_you_use
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (50 loc) · 1.38 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# Repository hygiene
- id: check-added-large-files
# Sane files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-json
# Code style
- id: end-of-file-fixer
- id: trailing-whitespace
# Python code quality
- id: debug-statements
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- repo: https://github.com/keith/pre-commit-buildifier
rev: 6.1.0
hooks:
- id: buildifier
args: [ "--warnings=+out-of-order-load,+unsorted-dict-items,+native-py" ]
- id: buildifier-lint
args: [
"--diff_command='diff'",
"--warnings=-module-docstring,-function-docstring,-function-docstring-header,-print"
]
- 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: pyupgrade
name: pyupgrade
entry: poetry run pyupgrade
args: [ --py38-plus ]
language: system
types: [ python ]