From 3ce35ae455f2056c48ec6e588d947b048acc45e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Brudn=C3=BD?= Date: Wed, 22 Sep 2021 17:34:05 +0200 Subject: [PATCH] tools: precommit copyright check fails on windows --- .pre-commit-config.yaml | 6 ++++-- tools/ci/check_copyright.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d2614ba7f..0fa2a43527 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -101,8 +101,10 @@ repos: name: Check copyright notices entry: tools/ci/check_copyright.py --verbose --replace additional_dependencies: - - comment_parser == 1.2.3 - - thefuzz[speedup] == 0.19.0 + - 'comment_parser == 1.2.3' + - 'thefuzz == 0.19.0' + - 'thefuzz[speedup] == 0.19.0; sys_platform != "win32"' + # don't depend on python-Levenshtein on Windows, as it requires Microsoft C++ Build Tools to install language: python files: \.(py|c|h|cpp|hpp|ld)$ require_serial: true diff --git a/tools/ci/check_copyright.py b/tools/ci/check_copyright.py index 8ba7f54393..e5ef394bcb 100755 --- a/tools/ci/check_copyright.py +++ b/tools/ci/check_copyright.py @@ -93,7 +93,7 @@ MIME = { 'cpp': 'text/x-c++' } -# terminal color outupu +# terminal color output TERMINAL_RESET = '\33[0m' TERMINAL_YELLOW = '\33[93m'