-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
41 lines (40 loc) · 1.31 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
repos:
- repo: local
hooks:
- id: pyupgrade
name: pyupgrade
description: Automatically upgrade syntax for newer versions.
entry: pyupgrade
language: python
types: [python]
# for backward compatibility
files: ''
minimum_pre_commit_version: 0.15.0
args: ['--py36-plus']
- id: black
name: black
description: "Black: The uncompromising Python code formatter"
entry: black
language: python
language_version: python3
require_serial: true
types: [python]
args: ['--line-length=79']
- id: flake8
name: flake8
description: '`flake8` is a command-line utility for enforcing style consistency across Python projects.'
entry: flake8
language: python
types: [python]
additional_dependencies:
- flake8-broken-line
- flake8-blind-except
- flake8-builtins
- flake8-logging-format
- flake8-print
# - flake8-docstrings
# - flake8-mypy
args: ['--max-line-length=100',
'--ignore=W503,E203,T001,E501,RST201,RST203,RST301,S301,S403,D212,D200,C901,E731,G004',
'--max-complexity=10',
'--select=B,B9,C,D,DAR,E,F,N,RST,S,W,C4']