File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Install the pre-commit hooks below with
2+ # 'pre-commit install'
3+
4+ # Auto-update the version of the hooks with
5+ # 'pre-commit autoupdate'
6+
7+ # Run the hooks on all files with
8+ # 'pre-commit run --all'
9+
10+ repos :
11+ - repo : https://github.com/pre-commit/pre-commit-hooks
12+ rev : v4.6.0
13+ hooks :
14+ - id : check-ast
15+ exclude : ^deps/
16+ - id : check-merge-conflict
17+ - id : end-of-file-fixer
18+ # only include python files
19+ files : \.py$
20+ - id : trailing-whitespace
21+ # only include python files
22+ files : \.py$
23+ - id : end-of-file-fixer
24+ # only include python files
25+ files : \.py$
26+
27+ - repo : https://github.com/pre-commit/mirrors-mypy
28+ rev : ' v1.11.0'
29+ hooks :
30+ - id : mypy
31+ files : (src/gh|tests|invokes\.py)
32+ exclude : src/gh/components/
33+ additional_dependencies : [
34+ types-requests==2.31.0,
35+ numpy==2.0.1,
36+ pytest==8.3.1,
37+ types-setuptools>=71.1.0.20240818
38+ ]
39+ args : [--config=pyproject.toml]
40+
41+ - repo : https://github.com/astral-sh/ruff-pre-commit
42+ rev : v0.4.4
43+ hooks :
44+ - id : ruff
You can’t perform that action at this time.
0 commit comments