Allow tidy to pass without support/crown/target (#34212)

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Samson 2024-11-11 17:07:05 +01:00 committed by GitHub
parent f83e0a8b67
commit 5423e622ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -949,7 +949,7 @@ def check_config_file(config_file, print_text=True):
# Check for invalid listed ignored directories
exclude_dirs = [d for p in exclude.get("directories", []) for d in (glob.glob(p) or [p])]
skip_dirs = ["./target", "./tests"]
skip_dirs = ["./target", "./tests", "./support/crown/target"]
invalid_dirs = [d for d in exclude_dirs if not os.path.isdir(d) and not any(s in d for s in skip_dirs)]
# Check for invalid listed ignored files