diff options
author | Brandon Odiwuor <brandon.odiwuor@gmail.com> | 2024-02-26 13:36:10 +0300 |
---|---|---|
committer | Brandon Odiwuor <brandon.odiwuor@gmail.com> | 2024-03-26 13:49:47 +0300 |
commit | 80fa7da21c470302165c47cc4a6a62fb44f997ef (patch) | |
tree | 4b54fd06c2da30677e80ff47f51f9d09ae3cff54 /test/lint/lint-spelling.py | |
parent | c1223188e0a5fb11c3a1b9224511a49dc2f848ed (diff) | |
download | bitcoin-80fa7da21c470302165c47cc4a6a62fb44f997ef.tar.xz |
test: Refactor subtree exclusion in lint tests
Diffstat (limited to 'test/lint/lint-spelling.py')
-rwxr-xr-x | test/lint/lint-spelling.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lint/lint-spelling.py b/test/lint/lint-spelling.py index ac0bddeaa6..3e578b218f 100755 --- a/test/lint/lint-spelling.py +++ b/test/lint/lint-spelling.py @@ -11,8 +11,11 @@ Note: Will exit successfully regardless of spelling errors. from subprocess import check_output, STDOUT, CalledProcessError +from lint_ignore_dirs import SHARED_EXCLUDED_SUBTREES + IGNORE_WORDS_FILE = 'test/lint/spelling.ignore-words.txt' -FILES_ARGS = ['git', 'ls-files', '--', ":(exclude)build-aux/m4/", ":(exclude)contrib/seeds/*.txt", ":(exclude)depends/", ":(exclude)doc/release-notes/", ":(exclude)src/leveldb/", ":(exclude)src/crc32c/", ":(exclude)src/qt/locale/", ":(exclude)src/qt/*.qrc", ":(exclude)src/secp256k1/", ":(exclude)src/minisketch/", ":(exclude)contrib/guix/patches"] +FILES_ARGS = ['git', 'ls-files', '--', ":(exclude)build-aux/m4/", ":(exclude)contrib/seeds/*.txt", ":(exclude)depends/", ":(exclude)doc/release-notes/", ":(exclude)src/qt/locale/", ":(exclude)src/qt/*.qrc", ":(exclude)contrib/guix/patches"] +FILES_ARGS += [f":(exclude){dir}" for dir in SHARED_EXCLUDED_SUBTREES] def check_codespell_install(): |