Add check in pre-commit

This commit is contained in:
nicolargo 2025-11-01 15:32:54 +01:00
parent 02752f90ea
commit 10111cc7f6
1 changed files with 11 additions and 0 deletions

View File

@ -24,3 +24,14 @@ repos:
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
- repo: local
hooks:
# test duplicate line at the end of file with a custom script
# /bin/bash tests-data/tools/find-duplicate-lines.sh
- id: find-duplicate-lines
name: find duplicate lines at the end of file
entry: bash tests-data/tools/find-duplicate-lines.sh
language: system
types: [python]
pass_filenames: false