exempt scripts under 'internal' from docstring req

develop
Myk Taylor 2020-07-24 23:40:27 -07:00
parent 48d4013bcb
commit e614e28beb
1 changed files with 3 additions and 1 deletions

@ -81,7 +81,9 @@ def check_file(fname):
def main(): def main():
"""Check that all DFHack scripts include documentation""" """Check that all DFHack scripts include documentation"""
err = 0 err = 0
for root, _, files in os.walk(SCRIPT_PATH): exclude = set(['internal'])
for root, dirs, files in os.walk(SCRIPT_PATH, topdown=True):
dirs[:] = [d for d in dirs if d not in exclude]
for f in files: for f in files:
if f[-3:] in {'.rb', 'lua'}: if f[-3:] in {'.rb', 'lua'}:
err += check_file(join(root, f)) err += check_file(join(root, f))