forked from openqasm/qe-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.05 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: no-commit-to-branch
stages: [commit]
args: [--branch, main, --pattern, release/.*, --pattern, .*/release/.*]
- id: check-json
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
exclude: '.+(\.s[ql][23])$'
- id: trailing-whitespace
stages: [commit]
args: [--markdown-linebreak-ext=md]
exclude: '.+(\.s[ql][23])$'
- id: check-merge-conflict
stages: [commit]
- id: debug-statements
stages: [commit]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
stages: [commit]
args:
- "-l 100"
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.5
hooks:
- id: clang-format
stages: [commit]
args:
- "--style=file:.clang-format"
- repo: https://github.com/PyCQA/flake8.git
rev: 4.0.1
hooks:
- id: flake8
stages: [commit]
args:
- "--max-line-length=100"
- "--extend-ignore=W503"