-
Notifications
You must be signed in to change notification settings - Fork 505
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (63 loc) · 1.71 KB
/
.pre-commit-config.yaml
File metadata and controls
63 lines (63 loc) · 1.71 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude: LICENSE.md
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py39-plus]
exclude: hyperliquid/utils/types.py$
- repo: https://github.com/PyCQA/isort
rev: 6.0.0
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
# ignoring formatting related lints, which are handled by black
args: ['--ignore=E501,E203,W503']
- repo: https://github.com/PyCQA/bandit
rev: 1.8.2
hooks:
- id: bandit
exclude: tests/.*$
- repo: https://github.com/pylint-dev/pylint
rev: v3.3.4
hooks:
- id: pylint
exclude: examples/.*$
- repo: https://github.com/python-poetry/poetry
rev: 2.0.1
hooks:
- id: poetry-check
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--mapping, '2', --offset, '2', --sequence, '4', --implicit_start]
files: .pre-commit-config.yaml|\.github/workflows/.*\.yml$
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.1
hooks:
- id: check-github-workflows
- repo: local
hooks:
- id: mypy
name: mypy
entry: poetry run mypy --config-file pyproject.toml ./
pass_filenames: false
language: system
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes