未验证 提交 3e0a1765 编写于 作者: Z zhangbo9674 提交者: GitHub

Improve the python file annotation check strategy for precise testing (#46559)

* test

* test

* refine check pr is_comment chanege

* test
上级 acf785b6
......@@ -38,8 +38,8 @@ class PRChecker(object):
self.github = Github(os.getenv('GITHUB_API_TOKEN'), timeout=60)
self.repo = self.github.get_repo('PaddlePaddle/Paddle')
self.py_prog_oneline = re.compile('\d+\|\s*#.*')
self.py_prog_multiline_a = re.compile('\d+\|\s*r?""".*?"""', re.DOTALL)
self.py_prog_multiline_b = re.compile("\d+\|\s*r?'''.*?'''", re.DOTALL)
self.py_prog_multiline_a = re.compile('"""(.*?)"""', re.DOTALL)
self.py_prog_multiline_b = re.compile("'''(.*?)'''", re.DOTALL)
self.cc_prog_online = re.compile('\d+\|\s*//.*')
self.cc_prog_multiline = re.compile('\d+\|\s*/\*.*?\*/', re.DOTALL)
self.lineno_prog = re.compile('@@ \-\d+,\d+ \+(\d+),(\d+) @@')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册