-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (52 loc) · 1.22 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (52 loc) · 1.22 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
45
46
47
48
49
50
51
52
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.9
hooks:
- id: insert-license
name: Add license for all python files
exclude: ^(\.github|swagger_client)/.*$
types: [python]
args:
- --comment-style
- "|#|"
- --license-filepath
- templates/LICENSE.txt
- --fuzzy-match-generates-todo
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: ^swagger_client/
- repo: https://github.com/PyCQA/flake8
rev: 7.2.0
hooks:
- id: flake8
exclude: '^swagger_client/'
args:
- "--max-line-length=120"
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
exclude: ^swagger_client/
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
exclude: ^swagger_client/
#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.2.0
# hooks:
# - id: mypy
# exclude: ^swagger_client/
# args:
# - "--ignore-missing-imports"
# additional_dependencies:
# - 'sqlalchemy[mypy]'
# - 'types-python-dateutil'
# - 'types-six'
# - 'types-urllib3'