-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 1.14 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
default_language_version:
python: python3.7
repos:
# Installed through poetry.
- repo: local
hooks:
- id: seed-isort-config
name: Seed isort with third-party libraries
description: Statically populate the `known_third_party` `isort` setting.
entry: seed-isort-config
language: system
types: [python]
pass_filenames: false
always_run: false
- id: isort
name: Sort imports (isort)
description: Sort imports
entry: isort
language: system
types: [python]
- id: black
name: Run code formatter (black)
description: the uncompromising Python code formatter
entry: black
language: system
types: [python]
- id: flake8
name: Run linter (flake8)
description: linter and style guide enforcement
entry: flake8
language: system
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer