MCPcopy Create free account
hub / github.com/DFHack/dfhack / main

Function main

ci/script-docs.py:66–75  ·  view source on GitHub ↗

Check that all DFHack scripts include documentation

()

Source from the content-addressed store, hash-verified

64
65
66def main():
67 """Check that all DFHack scripts include documentation"""
68 err = 0
69 exclude = {'.git', 'internal', 'test'}
70 for root, dirs, files in os.walk(SCRIPT_PATH, topdown=True):
71 dirs[:] = [d for d in dirs if d not in exclude]
72 for f in files:
73 if f.split('.')[-1] in {'rb', 'lua'}:
74 err += check_file(join(root, f))
75 return err
76
77
78if __name__ == '__main__':

Callers 1

script-docs.pyFile · 0.70

Calls 1

check_fileFunction · 0.85

Tested by

no test coverage detected