mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix check_comment_ascii.py
This commit is contained in:
@ -1,4 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
"""
|
||||||
|
Check whether given python files contain non-ASCII comments.
|
||||||
|
|
||||||
|
How to check the whole git repo:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git ls-files -z -- '*.py' | xargs -0 python3 check_comment_ascii.py
|
||||||
|
```
|
||||||
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import tokenize
|
import tokenize
|
||||||
import ast
|
import ast
|
||||||
|
|||||||
Reference in New Issue
Block a user