File size: 616 Bytes
1b2323a
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import ast, os
missing={}
for root, dirs, files in os.walk('.'):
    dirs[:] = [d for d in dirs if d not in {'node_modules','.next','__pycache__','.git'} and not root.startswith('./node_modules') and not root.startswith('./.next')]
    dirs[:] = [d for d in dirs if d not in {'_testvendor'}]
    for f in files:
        if f.endswith('.py'):
            path=os.path.join(root,f)
            try:
                ast.parse(open(path,'r',encoding='utf-8').read(), filename=path)
            except Exception as e:
                missing[path]=str(e)
for path in sorted(missing)[:100]:
    print(path, missing[path])