-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
51 lines (46 loc) · 1.2 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
default_stages: [commit , push]
minimum_pre_commit_version: '3.0.0'
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
name: Run isort to properly sort imports
args:
- --line-length
- '120'
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
name: Run autoflake to remove unused stuff
args:
- --ignore-init-module-imports
- --remove-all-unused-imports
- --remove-duplicate-keys
- --in-place
- repo: https://github.com/ikamensh/flynt
rev: '1.0.1'
hooks:
- id: flynt
name: Run flynt string format converter for Python
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
- repo: https://github.com/grantjenks/blue
rev: v0.9.1
hooks:
- id: blue
name: Run blue code style formatter
args:
- --line-length
- '120'