-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (41 loc) · 1.08 KB
/
.pre-commit-config.yaml
File metadata and controls
44 lines (41 loc) · 1.08 KB
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
# .pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
types: [python]
- id: end-of-file-fixer
types: [python]
- id: check-yaml
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
types: [python]
exclude: (__init__.py)$
files: \.py$
args: ["--profile", "black",
"--skip-glob","*/__init__.py",
"--force-alphabetical-sort-within-sections",
"--order-by-type",
"--lines-after-imports=2"]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
types: [python]
files: \.py$
language_version: python3
- repo: https://github.com/pycqa/autoflake
rev: v2.1.1
hooks:
- id: autoflake
types: [python]
files: \.py$
args: [
"--remove-all-unused-imports",
"--expand-star-imports",
"--ignore-init-module-imports",
"--in-place"
]