mirror of https://github.com/aliasrobotics/cai.git
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
repos:
|
|
- repo: https://github.com/hhatto/autopep8
|
|
rev: v2.1.0
|
|
hooks:
|
|
- id: autopep8
|
|
args:
|
|
- --in-place
|
|
- --aggressive
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
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
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.16.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
# - repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# rev: v0.5.2
|
|
# hooks:
|
|
# - id: ruff
|
|
# args: [--fix]
|
|
# exclude: ^(examples/|tests/|docs/)
|
|
# - id: ruff-format
|
|
# exclude: ^(examples/|tests/|docs/)
|
|
# - repo: https://github.com/python-poetry/poetry
|
|
# rev: 1.8.0
|
|
# hooks:
|
|
# - id: poetry-check
|
|
# - id: poetry-lock
|
|
# args:
|
|
# - "--check"
|
|
# - "--no-update"
|
|
- repo: https://github.com/gitleaks/gitleaks
|
|
rev: v8.18.4
|
|
hooks:
|
|
- id: gitleaks
|
|
- repo: https://github.com/pycqa/bandit
|
|
rev: 1.7.8
|
|
hooks:
|
|
- id: bandit
|
|
additional_dependencies: ['.[toml]']
|
|
args: ["-r", "-c", "pyproject.toml"]
|
|
exclude: ^(examples|tests)/
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: flake8
|
|
exclude: ^(examples|tests)/
|
|
- repo: https://github.com/PyCQA/pylint
|
|
rev: v3.1.0
|
|
hooks:
|
|
- id: pylint
|
|
args: ["--rcfile=pyproject.toml"]
|
|
exclude: ^(examples|tests)/
|