forked from asyrjasalo/RESTinstance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
58 lines (51 loc) · 1.82 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "d6d3bd94604578adbd918c5a00d531d98350d86f"
hooks:
- id: detect-private-key
- id: check-merge-conflict
- id: check-added-large-files
- id: check-case-conflict # check fnames for case-insensitive file systems
- id: check-ast # whether files parse as valid Python
- id: debug-statements
- id: check-docstring-first # checks common error of code after docstrings
- id: requirements-txt-fixer
- id: mixed-line-ending # next: unify how text files are encoded ->
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json # next: verify configs syntactically correct ->
- id: check-toml
- id: check-yaml
- repo: https://github.com/jstewmon/check-swagger
rev: "10786849784ef4386bdd3161e0f31ceab6d15086"
hooks:
- id: check-swagger
- repo: https://github.com/asottile/pyupgrade
rev: "00851f30cbb74899b15a05640d943a1059501903"
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/ambv/black
rev: "026c81b83454f176a9f9253cbfb70be2c159d822"
hooks:
- id: black
language_version: python3.6
#- repo: https://github.com/PyCQA/prospector
# rev: "c4d3d2f368b458462feb7d730cb3c5e742410695"
# hooks:
# - id: prospector
# args: [--without-tool, pep8, --without-tool, pep257]
- repo: https://github.com/guykisel/pre-commit-robotframework-tidy
rev: "f5942827aadc04b1637527b8b5c4b2bc1850ca6b"
hooks:
- id: robotframework-tidy-wrapper
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
rev: "b0858b0ce3c299726109141d91b1e47d41872788"
hooks:
- id: python-bandit-vulnerability-check
args: []
files: .py$
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: "d26534190d2c2d859177374a711746fcdf641350"
hooks:
- id: python-safety-dependencies-check