Files
ComfyAssets-ComfyUI_PromptM…/.pre-commit-config.yaml
T
Vito Sansevero bb34b9cf3b fix: use system-installed Black in pre-commit to match CI
Avoids version mismatch between pre-commit's pinned Black and CI's
latest Black. All hooks now use local system tools for consistency.
2026-02-08 05:30:31 -08:00

29 lines
714 B
YAML

repos:
- repo: local
hooks:
- id: black
name: black
entry: black --line-length=88 --target-version=py310
language: system
types: [python]
- id: flake8
name: flake8
entry: flake8 --select=E9,F63,F7,F82 --show-source --exclude=reference/,web/
language: system
types: [python]
- id: bandit
name: bandit
entry: bash -c 'bandit "$@" -ll -q 2>&1; true'
language: system
types: [python]
exclude: ^(tests/|reference/)
- id: tests
name: tests
entry: python -m unittest discover tests/ -v
language: system
pass_filenames: false
stages: [pre-push]