-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.pre-commit-config.yaml
59 lines (59 loc) · 1.64 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
59
ci:
skip: [detect-aws-credentials, pylint]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.6.0
hooks:
- id: no-commit-to-branch
args: [--branch=main]
- id: check-merge-conflict
- id: detect-private-key
- id: detect-aws-credentials
- id: check-added-large-files
args: [--maxkb=100]
exclude: "^LICENSES/third_party/third-party-licenses.txt$"
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-yaml
- id: check-ast
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/sigopt/sigopt-tools.git
rev: "v0.0.2"
hooks:
- id: copyright-license-disclaimer
args: ["--license=MIT", "--owner=Intel Corporation"]
- id: sigoptlint-python
- id: sigoptlint-shell
- repo: https://github.com/sigopt/black.git
rev: sigopt-22.10.0
hooks:
- id: black
args: [--preview]
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort.git
rev: "5.13.2"
hooks:
- id: isort
- repo: local
hooks:
- id: pylint
name: pylint
entry: env PYTHONPATH=./test pylint
language: system
types: [python]
args: ["-rn", "-sn"]
- repo: https://github.com/jendrikseipp/vulture.git
rev: "v2.12"
hooks:
- id: vulture
entry: tools/run_vulture.sh
args: [.vulture_allowlist]