-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (39 loc) · 1012 Bytes
/
.pre-commit-config.yaml
File metadata and controls
44 lines (39 loc) · 1012 Bytes
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
# Install the pre-commit hooks below with
# 'pre-commit install'
# Auto-update the version of the hooks with
# 'pre-commit autoupdate'
# Run the hooks on all files with
# 'pre-commit run --all'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-ast
exclude: ^deps/
- id: check-merge-conflict
- id: end-of-file-fixer
# only include python files
files: \.py$
- id: trailing-whitespace
# only include python files
files: \.py$
- id: end-of-file-fixer
# only include python files
files: \.py$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.11.1'
hooks:
- id: mypy
files: (src/gh|tests|invokes\.py)
exclude: src/gh/components/
additional_dependencies: [
types-requests==2.31.0,
numpy==2.0.1,
pytest==8.3.1,
types-setuptools>=71.1.0.20240818
]
args: [--config=pyproject.toml]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
hooks:
- id: ruff