forked from superannotateai/superannotate-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (44 loc) · 1.49 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (44 loc) · 1.49 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
repos:
- repo: 'https://gitlab.com/pycqa/flake8'
rev: 3.8.2
hooks:
- id: flake8
exclude: src/lib/app/analytics | src/lib/app/converters | src/lib/app/input_converters
name: Style Guide Enforcement (flake8)
args:
- '--max-line-length=120'
- --ignore=D100,D203,D405,W503,E203,E501,F841,E126,E712
- repo: 'https://github.com/asottile/pyupgrade'
rev: v2.4.3
hooks:
- id: pyupgrade
exclude: src/lib/app/analytics | src/lib/app/converters | src/lib/app/input_converters
name: Upgrade syntax for newer versions of the language (pyupgrade)
args:
- '--py37-plus'
- repo: 'https://github.com/asottile/reorder_python_imports'
rev: v2.3.0
hooks:
- id: reorder-python-imports
exclude: src/lib/app/analytics | src/lib/app/converters | src/lib/app/input_converters
name: 'Reorder Python imports (src, tests)'
args:
- '--application-directories'
- app
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v3.1.0
hooks:
- id: check-byte-order-marker
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: 'https://github.com/python/black'
rev: 19.10b0
hooks:
- id: black
name: Uncompromising Code Formatter (black)
# - repo: 'https://github.com/asottile/dead'
# rev: v1.3.0
# hooks:
# - id: dead
files: src/
exclude: src/lib/app/analytics | src/lib/app/converters | src/lib/app/input_converters