-
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.15.2-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