From 10111cc7f6aed62bb0b045ec9e17df0564856dd1 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 1 Nov 2025 15:32:54 +0100 Subject: [PATCH] Add check in pre-commit --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5b2fa0a9..928e0add 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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