You need to sign in or sign up before continuing.
  1. 12 10月, 2022 1 次提交
  2. 05 6月, 2022 1 次提交
    • S
      【code format check upgrade】 step2:yapf (#42944) · a072fca8
      Sing_chan 提交于
      * use yapf to format all python file
      
      * yapf exclude two unittests file for they rely on writing and reading file, and format will break them
      
      * disable diff_py_file because too many diff files cause command following failed
      a072fca8
  3. 15 7月, 2021 1 次提交
    • R
      Check api compatible (#34119) · 1889d504
      Ren Wei (任卫) 提交于
      * print the signatures of the apis
      
      * some faults, and a test case
      
      * use the FullArgSpec as the ArgSpec, repr>str
      
      为了延续脚本历史,把FullArgsSpec替换为ArgSpec;在逆转回对象时,记得加上inpect.FullArgSpec对象
      
      * script form @zhiboniu
      
      * parsearg
      
      * read argspec from file
      
      * add comments
      
      * refactor check_compatible and its testcases
      
      * skip the empty ArgSepc()
      
      * update the function, get inspect.FullArgSpec instances directly.
      
      * typo
      
      * for the functions using inner-defined VarType or other Class Type not accessable, use the string comparements.
      
      * typo
      
      * logging added
      
      * 若变量和默认值都增加了,用负数索引需要再处理下这个增加的内容
      
      * defaults itself may be NoneType
      
      * defaults added 2 items when args only added 1 item
      
      * same as the previous comment
      
      * enable the check_api_compatible.py
      
      * run test_check_api_compatible.py
      
      * sort the output of print_signatures.py
      1889d504
  4. 24 6月, 2021 1 次提交
    • R
      remove the tricks for `paddle.fluid.layers.ops.func` (#33731) · ba7e2a9f
      Ren Wei (任卫) 提交于
      * refactor check_pr_approval, allow using github login-id
      
      2. remove the tricks for paddle.fluid.layers.ops.func
      
      * add testcases
      
      * simplify the test data, and added to file diff approvals
      
      * remove a approver
      
      * test_print_signatrues runs on a simple pipeline, no paddle installed
      
      * testcases for print_signatrures and sampcd . python3 only.
      
      * remove unused import directives
      
      * remove unused import directives
      ba7e2a9f
  5. 14 5月, 2021 1 次提交
    • R
      use the `required` instruction to determine if the environment fits the sample... · 42aad304
      Ren Wei (任卫) 提交于
      use the `required` instruction to determine if the environment fits the sample code's required. (#32766)
      
      * add unittests
      
      * add find_last_future_line_end
      
      * extract_code_blocks_from_docstr and its testcases
      
      * test_codeblock_before_examples_is_ignored
      
      * sampcd_extract_to_file 拆为两步
      
      * update the codeblock element's format
      
      * code-block directive has no value options
      
      * insert the CODES_INTERTED_INTO_FRONTEND
      
      * using the new func insert_codes_into_codeblock
      
      * get_test_capacity and is_required_match
      
      * using the new funcitons in sampcd_extract_to_file
      
      * add some comments and refactor functions
      
      * using logger instead of all the print
      
      * remote wlist
      
      * collect summary info, and print them
      
      * call get capacity
      
      * update summary format
      
      * print the apis that don't have sample codes.
      
      * print the samples the consumed time more than 10s.
      
      print time
      
      * update unittest testcases
      
      * solve ResourceWarning: unclosed file
      
      * run tools test seperately
      
      * python2 does not have nonlocal keyword, using dict variable instead
      
      * remove unused import, rearrange a series of conditional statements.
      
      * remove wlist.json and its check approval
      
      * remove wlist.json and its check approval
      42aad304
  6. 25 4月, 2021 1 次提交
    • R
      Cleanup the unused codes for samplecode testing (#32525) · 2328921f
      Ren Wei (任卫) 提交于
      * update testcases
      
      * remove unused codes
      
      * update the docstring for samcd_processor
      
      * no need to import the six module
      
      * 我也不知道为何有一个前导空格,但现在有单元测试,取消这个空格没啥问题
      
      * add unittests for print_signatures; add the first case for 'required' mechanism when executing sample code testing
      
      * there is no paddle installed in PR-CI-APPROVAL
      
      test=document_fix
      2328921f
  7. 24 4月, 2021 1 次提交
    • R
      print the real name for Functions instead of the ArgSpec (#32379) · ef8671e5
      Ren Wei (任卫) 提交于
      * print the real name for Functions instead of the ArgSpec
      
      class function method
      
      * some API's name is not __module__ + __name__
      
      so, we disard them temporarily.
      
      * update the logging format for console
      
      * ommit the top level of paddle package.
      
      * these APIs have been removed.
      
      test=document_fix
      
      * Another Error occerd
      
      * print_signatures.py 's stdout is redirect to spec file, so should not print any other info.
      
      so sad.
      
      * print the error msg to stderr
      
      * disable the __init__ magic method
      
      * update unittest for sampcd_processor.py
      
      update unittest for sampcd_processor.py
      
      * PR-CI-APPROVAL 's python interpreter name is not 'python3'.
      
      it's a python3.9;
      it does not have paddle installed yet.
      
      此句在CI流水线竟然不可以用。报python3找不到
      此句在CI流水线竟然不可以用。因为环境没有安装paddle
      
      * testing only extract api from __all__
      
      paddle module(the top module) does not have __add__
      test=document_fix
      
      * should import paddle here
      
      * update the mechanism of extractiong and executing for the sample-codes test.
      
      更新抽取代码和执行代码的逻辑
      优化输出打印
      
      * good code style
      ef8671e5
  8. 19 4月, 2021 1 次提交
  9. 13 4月, 2021 1 次提交