-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
29 lines (29 loc) · 954 Bytes
/
.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
name: Trim trailing whitespace
- id: end-of-file-fixer
name: Make sure files only end in a newline
exclude_types: [svg]
- id: double-quote-string-fixer
name: Use single quotes
- repo: https://github.com/timothycrosley/isort
rev: 5.11.1
hooks:
- id: isort
name: Sort imports alphabetically, separated into sections by type
args: [--filter-files]
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
name: Optimize formatting based on PEP8 style guide (via yapf)
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
name: Check PEP8 compliance (via flake8)