-
Notifications
You must be signed in to change notification settings - Fork 35
/
.pre-commit-config.yaml
82 lines (82 loc) · 2.25 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
74
75
76
77
78
79
80
81
82
ci:
skip: [mypy]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
exclude: 'bqskit/ext/rigetti.py'
- id: debug-statements
- id: double-quote-string-fixer
- id: name-tests-test
args: [--django]
- id: check-case-conflict
- id: check-merge-conflict
- id: mixed-line-ending
- id: check-added-large-files
args: ['--maxkb=8192']
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: ['--remove']
- repo: https://github.com/s-weigand/docformatter
rev: 1ec30b7
hooks:
- id: docformatter
args:
- --in-place
- --pre-summary-newline
- --wrap-summaries=80
- --wrap-descriptions=80
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.4
hooks:
- id: autopep8
args:
- --in-place
- --max-line-length=80
- --ignore=E731
exclude: 'tests/ext.*'
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args:
- --py38-plus
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.13.0
hooks:
- id: reorder-python-imports
args:
- --add-import
- from __future__ import annotations
- --py37-plus
exclude: 'tests/ext.*'
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
args:
- --py36-plus
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args:
- --in-place
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
exclude: tests/qis/test_pauli.py
additional_dependencies: ["numpy>=1.21"]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
args:
- --ignore=E741,W503,F901,E731,TYP006,TYP001,TYP002
- --max-line-length=80
- --per-file-ignores=bqskit/runtime/worker.py:E402
additional_dependencies: [flake8-typing-imports==1.13.0]