-
Notifications
You must be signed in to change notification settings - Fork 21
/
.pre-commit-config.yaml
43 lines (43 loc) · 1.2 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
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.0"
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.4.3"
hooks:
- id: pyproject-fmt
- repo: https://github.com/crate-ci/typos
rev: "v1.26.0"
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: 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