|
repos: |
|
- repo: https://github.com/psf/black-pre-commit-mirror |
|
rev: 25.1.0 |
|
hooks: |
|
- id: black |
|
args: ["--diff", "--line-length", "120"] |
|
types: [python] |
|
exclude: .*_pb2.*\.py |
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks |
|
rev: v1.5.5 |
|
hooks: |
|
- id: insert-license |
|
files: \.py$ |
|
args: |
|
|
|
- "--license-filepath" |
|
- ".github/LICENSE_HEADER.txt" |
|
- "--use-current-year" |
|
exclude: | |
|
(?x)^( |
|
server/source/genie.sim.lab/genie/sim/lab/app/app_launcher.py| |
|
server/source/genie.sim.lab/genie/sim/lab/app/ui_builder.py| |
|
server/source/genie.sim.lab/genie/sim/lab/controllers/parallel_gripper.py| |
|
robot/isaac_sim/aimdk/ |
|
)$ |
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks |
|
rev: v5.0.0 |
|
hooks: |
|
- id: trailing-whitespace |
|
- id: check-added-large-files |
|
- id: check-ast |
|
- id: check-json |
|
- id: check-xml |
|
- id: check-yaml |
|
- id: requirements-txt-fixer |
|
- id: sort-simple-yaml |
|
- id: pretty-format-json |
|
args: [--autofix] |
|
- id: mixed-line-ending |
|
- id: detect-private-key |
|
- id: debug-statements |
|
- id: check-merge-conflict |
|
- id: check-docstring-first |
|
- id: check-byte-order-marker |
|
- id: end-of-file-fixer |
|
|
|
|
|
- repo: https://github.com/commitizen-tools/commitizen |
|
rev: v4.2.0 |
|
hooks: |
|
- id: commitizen |
|
stages: [commit-msg] |
|
args: |
|
[ |
|
--allowed-prefixes, |
|
"add,dev,chore,ci,perf,update,fix,feat,docs,refactor,revert,test,format", |
|
--min-length=10, |
|
] |
|
|