-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 969 Bytes
/
.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 969 Bytes
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
repos:
# Flake8 to check style is OK
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
# yapf to fix many style mistakes
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
entry: black
language: python
language_version: python3
require_serial: true
types_or: [python, pyi]
# More built in style checks and fixes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- id: check-merge-conflict
- id: end-of-file-fixer
- id: sort-simple-yaml
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.1.0
hooks:
- id: add-trailing-comma