lerobot/.pre-commit-config.yaml

48 lines
1.2 KiB
YAML
Raw Normal View History

exclude: ^(tests/data)
2024-02-29 19:26:35 +08:00
default_language_version:
python: python3.10
repos:
2025-03-02 02:19:26 +08:00
##### Style / Misc. #####
2024-02-29 19:26:35 +08:00
- repo: https://github.com/pre-commit/pre-commit-hooks
2024-12-11 17:32:18 +08:00
rev: v5.0.0
2024-02-29 19:26:35 +08:00
hooks:
- id: check-added-large-files
- id: debug-statements
- id: check-merge-conflict
- id: check-case-conflict
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
2025-02-26 06:51:15 +08:00
- repo: https://github.com/crate-ci/typos
2025-03-02 02:19:26 +08:00
rev: v1.30.0
2025-02-26 06:51:15 +08:00
hooks:
- id: typos
args: [--force-exclude]
2024-02-29 19:26:35 +08:00
- repo: https://github.com/asottile/pyupgrade
2025-02-15 22:51:17 +08:00
rev: v3.19.1
2024-02-29 19:26:35 +08:00
hooks:
- id: pyupgrade
- repo: https://github.com/astral-sh/ruff-pre-commit
2025-03-02 02:19:26 +08:00
rev: v0.9.9
2024-02-29 19:26:35 +08:00
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
2025-03-02 02:19:26 +08:00
##### Security #####
2024-07-19 01:39:15 +08:00
- repo: https://github.com/gitleaks/gitleaks
2025-03-02 02:19:26 +08:00
rev: v8.24.0
2024-07-19 01:39:15 +08:00
hooks:
- id: gitleaks
2025-02-15 22:50:10 +08:00
- repo: https://github.com/woodruffw/zizmor-pre-commit
2025-03-02 02:19:26 +08:00
rev: v1.4.1
2025-02-15 22:50:10 +08:00
hooks:
- id: zizmor
2025-03-02 02:19:26 +08:00
- repo: https://github.com/PyCQA/bandit
rev: 1.8.3
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]