Spaces:
Running
Running
| 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]) | |