From d261b2d8ed786b93a37f18ebb87ed14d2e360f56 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 15 Jun 2022 12:56:44 -0400 Subject: Explicitly declare sources to check for spelling Using a wildcard is too flakey, for example it will check build directories other than "build", flotsam in the source tree, and so on. --- wscript | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index fcab2c1..3a901bf 100644 --- a/wscript +++ b/wscript @@ -723,22 +723,21 @@ def test(tst): check(tst.env.SORD_VALIDATE + all_files) if "CODESPELL" in tst.env: - spell_ignore = [ - "build", + spell_ignore_paths = [ "doc/pygments.css", - "lv2specgen/DTD/*", "schemas.lv2/doap.ttl", - "waflib", ] - spell_ignore_paths = [os.path.join(tst.src_path("."), x) - for x in spell_ignore] - check(tst.env.CODESPELL + [ "-d", "-q", "3", - "-S", ','.join(spell_ignore_paths), - tst.src_path("."), + "-S", ','.join(tst.src_path(p) for p in spell_ignore_paths), + tst.src_path("lv2specgen/*.*"), + tst.src_path("doc"), + tst.src_path("lv2"), + tst.src_path("plugins"), + tst.src_path("schemas.lv2"), + tst.src_path("scripts"), ]) try: -- cgit v1.2.1