Files
decluttarr/.pre-commit-config.yaml
2025-05-18 13:11:12 +02:00

35 lines
886 B
YAML

repos:
- repo: local
hooks:
- id: black
name: black
entry: |
bash -c 'BIN=".venv/bin/black";
[ ! -f "$BIN" ] && BIN=".venv/Scripts/black";
$BIN .'
language: system
- id: autoflake
name: autoflake
entry: |
bash -c 'BIN=".venv/bin/autoflake";
[ ! -f "$BIN" ] && BIN=".venv/Scripts/autoflake";
$BIN --in-place --remove-all-unused-imports --remove-unused-variables --recursive --exclude .venv .'
language: system
- id: isort
name: isort
entry: |
bash -c 'BIN=".venv/bin/isort";
[ ! -f "$BIN" ] && BIN=".venv/Scripts/isort";
$BIN -rc .'
language: system
- id: pylint
name: pylint
entry: |
bash -c 'BIN=".venv/bin/pylint";
[ ! -f "$BIN" ] && BIN=".venv/Scripts/pylint";
$BIN .'
language: system