validate: Skip build directories

This commit is contained in:
Timothée Ravier 2022-08-19 20:48:20 +02:00
parent 8bc8488ad3
commit a0c3b97ad8

View file

@ -21,9 +21,10 @@ def validate_shell(rootfd, name):
for root, dirs, files, rootfd in os.fwalk('.'):
# Skip .git
if '.git' in dirs:
dirs.remove('.git')
# Skip .git, repo, cache, tmp, logs, fedora-comps
for d in ['.git', 'repo', 'cache', 'tmp', 'logs', 'fedora-comps']:
if d in dirs:
dirs.remove(d)
for name in files:
if name.endswith(('.yaml', '.yml')):
print("Validating:", name)