generated from cvxgrp/simulator
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (56 loc) · 1.69 KB
/
.pre-commit-config.yaml
File metadata and controls
66 lines (56 loc) · 1.69 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
64
65
66
# This file is part of the jebel-quant/rhiza repository
# (https://github.com/jebel-quant/rhiza).
#
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-toml
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.15.4'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix, --unsafe-fixes ]
# Run the formatter
- id: ruff-format
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.47.0
hooks:
- id: markdownlint
args: ["--disable", "MD013"]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.2
hooks:
- id: check-renovate
args: [ "--verbose" ]
- id: check-github-workflows
args: ["--verbose"]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.11
hooks:
- id: actionlint
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.25
hooks:
- id: validate-pyproject
- repo: https://github.com/PyCQA/bandit
rev: 1.9.4
hooks:
- id: bandit
args: ["--skip", "B101", "--exclude", ".venv,tests,.rhiza/tests,.git,.pytest_cache", "-c", "pyproject.toml"]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.7
hooks:
- id: uv-lock
- repo: https://github.com/Jebel-Quant/rhiza-hooks
rev: v0.3.0 # Use the latest release
hooks:
# Migrated from rhiza
- id: check-rhiza-workflow-names
- id: update-readme-help
# Additional utility hooks
- id: check-rhiza-config
- id: check-makefile-targets
- id: check-python-version-consistency
# - id: check-template-bundles