-
Notifications
You must be signed in to change notification settings - Fork 204
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 1.03 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 1.03 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: .json
- id: check-yaml
exclude: ^test/docs/IBMQuantum/
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [ --fix=lf ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- id: ruff-check
args: [ --fix ]
- id: ruff-format
- repo: local
hooks:
# Invoke the locally installed mypy binary, ensuring it runs over all files.
- id: mypy
name: mypy
entry: mypy
pass_filenames: false
language: system
require_serial: true
- id: verify-headers
name: Verify copyright headers
entry: tools/verify_headers.py
language: python
types: [file, python]
- id: verify-images
name: Verify alt text in images
entry: tools/verify_images.py
language: python
types: [file, python]