in tools/check_documentation.py [0:0]
def main(paths):
"Cycle through modules and ensure READMEs are up-to-date."
error = False
for path in paths:
print(f'checking {path}')
for state, name, errors in check_path(path):
if state == DocState.FAIL:
error = True
print(f' [{state}] {name}')
for error in errors:
print(f' {error}')
if error:
print('errors were present')
sys.exit(1)