-
Notifications
You must be signed in to change notification settings - Fork 21
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.37 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: mixed-line-ending
- id: check-merge-conflict
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-case-conflict
- id: no-commit-to-branch
args: [--branch, master]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.4"
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.5.0"
hooks:
- id: pyproject-fmt
- repo: https://github.com/crate-ci/typos
rev: "v1.27.3"
hooks:
- id: typos
- repo: https://github.com/econchick/interrogate
rev: "1.7.0"
hooks:
- id: interrogate
args: [-v, qiskit_aqt_provider, test]
pass_filenames: false # needed if excluding files with pyproject.toml or setup.cfg
- repo: https://github.com/airwoodix/tach-pre-commit
rev: "v0.14.3-external"
hooks:
- id: tach
- id: tach-external
args: ["-e", "test/"]
- repo: local
hooks:
- id: check-api-models
name: check generated API models
entry: ./scripts/api_models.py generate
language: script
pass_filenames: false
always_run: true