From 9c56a9c7913d58baeff07bd5d5e5d0937ce44e75 Mon Sep 17 00:00:00 2001 From: Xavier Chapron Date: Mon, 31 Jul 2023 09:36:49 +0200 Subject: [PATCH 1/3] CI: Fix codespell --- .codespellrc | 1 + .pre-commit-config.yaml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index f25051d3e..dbb1c4c17 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,2 +1,3 @@ [codespell] ignore-words-list=ontop,clen +skip = ./lib_nbgl/include/*.json,./lib_bagl/include/*.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9117bdff6..5b36bba96 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,8 @@ repos: - id: check-added-large-files - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.2.5 hooks: - id: codespell + additional_dependencies: + - tomli From 8c0ef9d781f99859eab1ca85aca4c76c8f317e60 Mon Sep 17 00:00:00 2001 From: Xavier Chapron Date: Mon, 31 Jul 2023 09:55:58 +0200 Subject: [PATCH 2/3] wip --- .codespellrc | 1 - .pre-commit-config.yaml | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.codespellrc b/.codespellrc index dbb1c4c17..f25051d3e 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,3 +1,2 @@ [codespell] ignore-words-list=ontop,clen -skip = ./lib_nbgl/include/*.json,./lib_bagl/include/*.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5b36bba96..7f9b24a31 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # pre-commit install --hook-type pre-commit # pre-commit install --hook-type commit-msg -exclude: ^(lib_blewbxx/|lib_stusb/) +exclude: ^(lib_blewbxx/|lib_stusb/|lib_nbgl/include/*.json|lib_bagl/include/*.json) repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 @@ -16,5 +16,3 @@ repos: rev: v2.2.5 hooks: - id: codespell - additional_dependencies: - - tomli From 1ae8914fee5847d4fce4057226bc31e62fb00853 Mon Sep 17 00:00:00 2001 From: Xavier Chapron Date: Mon, 31 Jul 2023 10:05:02 +0200 Subject: [PATCH 3/3] wip --- .codespellrc | 2 +- .pre-commit-config.yaml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.codespellrc b/.codespellrc index f25051d3e..d13f24539 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,2 +1,2 @@ [codespell] -ignore-words-list=ontop,clen +ignore-words-list=ontop,clen,habitant diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f9b24a31..8e6e2638c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,14 @@ # pre-commit install --hook-type pre-commit # pre-commit install --hook-type commit-msg -exclude: ^(lib_blewbxx/|lib_stusb/|lib_nbgl/include/*.json|lib_bagl/include/*.json) +exclude: | + (?x)^( + lib_blewbxx/.*| + lib_stusb/.*| + lib_nbgl/include/.*.json| + lib_nbgl/include/.*.json| + lib_bagl/include/.*.json| + )$ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0