-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
73 lines (73 loc) · 1.96 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
ci:
skip: [detect-aws-credentials]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: no-commit-to-branch
args: [--branch=main]
- id: detect-aws-credentials
- id: detect-private-key
- id: check-added-large-files
args: [--maxkb=256]
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-ast
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
- repo: https://github.com/sigopt/sigopt-tools.git
rev: "v0.0.2"
hooks:
- id: copyright-license-disclaimer
args: ["--license=Apache License 2.0", "--owner=Intel Corporation"]
- id: sigoptlint-python
- repo: https://github.com/sigopt/black.git
rev: sigopt-22.10.0
hooks:
- id: black
args: [--preview]
- repo: https://github.com/PyCQA/flake8.git
rev: "7.1.1"
hooks:
- id: flake8
additional_dependencies:
- flake8-print==4.0.0
args: [--config=setup.cfg]
- repo: https://github.com/PyCQA/isort.git
rev: "5.13.2"
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.13.0"
hooks:
- id: mypy
- repo: https://github.com/jendrikseipp/vulture.git
rev: "v2.13"
hooks:
- id: vulture
- repo: https://github.com/pylint-dev/pylint.git
rev: "v3.3.1"
hooks:
- id: pylint
entry: env PYTHONPATH=. pylint
args: [-rn, -sn]
additional_dependencies:
- pytest
- repo: local
hooks:
- id: pytest
name: pytest
entry: env PYTHONPATH=. pytest
additional_dependencies:
- pytest
language: python
types: [python]
stages: [pre-commit]
pass_filenames: false
always_run: true