Guest User

Untitled

a guest
May 25th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import os
  2. import re
  3.  
  4. scripts_count = len(os.listdir('scripts/v2'))
  5. yaml_count = len(os.listdir('scripts/table_documentation/documentation'))
  6.  
  7. percent_documented = round((100 * yaml_count / scripts_count), 2)
  8. print(f'Percent of DWH scripts with .yaml documentation: {percent_documented}%')
Add Comment
Please, Sign In to add comment