kimodo-motion-api / .pre-commit-config.yaml
cs686's picture
Deploy Kimodo ZeroGPU motion API
a550c4e verified
Raw
History Blame Contribute Delete
1.29 kB
repos:
# code formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
hooks:
- id: ruff
name: sort imports with ruff
args: [--select, I, --fix]
- id: ruff-format
name: format with ruff
# docstring formatting
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.7
hooks:
- id: docformatter
args:
[
--in-place,
--wrap-summaries=100,
--wrap-descriptions=100,
--style=sphinx,
]
# yaml formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: prettier
types: [yaml]
exclude: |
(?x)^(
environment\.yaml$ |
\.gitlab-ci\.yml$ |
\.k8s/.*\.(ya?ml)$
)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace # Trims trailing whitespace.
- id: end-of-file-fixer # Makes sure files end in a newline and only a newline.
- id: check-yaml # Attempts to load all yaml files to verify syntax.
exclude: |
(?x)^(
\.gitlab-ci\.yml$ |
\.k8s/.*\.(ya?ml)$
)
exclude: "checkpoints/.*"