1919
2020
2121def check_jupyter_notebook (
22- notebook_path , verbose = 1 , ignore_func_name_suffix_list = ['test_' ],
22+ notebook_path , verbose = 1 , ignore_func_name_prefix_list = ['test_' ],
2323 ignore_info_id_list = [],
2424 enable_default_or_optional_doc_check = False ):
2525 """
@@ -33,11 +33,11 @@ def check_jupyter_notebook(
3333 Log settings of stdout. Specify one of the following numbers:
3434 - 0 -> Do not output log.
3535 - 1 -> Output the check result.
36- ignore_func_name_suffix_list : list of str, default ['test_']
37- A suffix list of function name conditions to ignore.
36+ ignore_func_name_prefix_list : list of str, default ['test_']
37+ A prefix list of function name conditions to ignore.
3838 ignore_info_id_list : list of int, default []
3939 List of IDs to ignore lint checking. A constant with a
40- suffix of `INFO_ID_` can be specified.
40+ prefix of `INFO_ID_` can be specified.
4141 enable_default_or_optional_doc_check : bool, default False
4242 If True specified, the `default` and `optional` string
4343 in docstring will be checked.
@@ -82,7 +82,7 @@ def check_jupyter_notebook(
8282 notebook_path = notebook_path ,
8383 code_cell_idx = i ,
8484 code_cell_str = code_cell_str ,
85- ignore_func_name_suffix_list = ignore_func_name_suffix_list ,
85+ ignore_func_name_prefix_list = ignore_func_name_prefix_list ,
8686 ignore_info_id_list = ignore_info_id_list ,
8787 enable_default_or_optional_doc_check = enable_def_or_opt_check )
8888 info_list .extend (info_list_unit )
@@ -91,7 +91,7 @@ def check_jupyter_notebook(
9191
9292
9393def check_jupyter_notebook_recursively (
94- dir_path , verbose = 1 , ignore_func_name_suffix_list = ['test_' ],
94+ dir_path , verbose = 1 , ignore_func_name_prefix_list = ['test_' ],
9595 ignore_info_id_list = [],
9696 enable_default_or_optional_doc_check = False ):
9797 """
@@ -105,11 +105,11 @@ def check_jupyter_notebook_recursively(
105105 Log settings of stdout. Specify one of the following numbers:
106106 - 0 -> Do not output log.
107107 - 1 -> Output the check result.
108- ignore_func_name_suffix_list : list of str, default ['test_']
109- A suffix list of function name conditions to ignore.
108+ ignore_func_name_prefix_list : list of str, default ['test_']
109+ A prefix list of function name conditions to ignore.
110110 ignore_info_id_list : list of int, default []
111111 List of IDs to ignore lint checking. A constant with a
112- suffix of `INFO_ID_` can be specified.
112+ prefix of `INFO_ID_` can be specified.
113113 enable_default_or_optional_doc_check : bool, default False
114114 If True specified, the `default` and `optional` string
115115 in docstring will be checked.
@@ -135,15 +135,15 @@ def check_jupyter_notebook_recursively(
135135 dir_path = dir_path ,
136136 info_list = [],
137137 verbose = verbose ,
138- ignore_func_name_suffix_list = ignore_func_name_suffix_list ,
138+ ignore_func_name_prefix_list = ignore_func_name_prefix_list ,
139139 ignore_info_id_list = ignore_info_id_list ,
140140 enable_default_or_optional_doc_check = enable_def_or_opt_check )
141141 return info_list
142142
143143
144144def _check_jupyter_notebook_recursively (
145145 dir_path , info_list , verbose ,
146- ignore_func_name_suffix_list , ignore_info_id_list ,
146+ ignore_func_name_prefix_list , ignore_info_id_list ,
147147 enable_default_or_optional_doc_check ):
148148 """
149149 Check docstring of Jupyter notebook recursively.
@@ -158,11 +158,11 @@ def _check_jupyter_notebook_recursively(
158158 Log settings of stdout. Specify one of the following numbers:
159159 - 0 -> Do not output log.
160160 - 1 -> Output the check result.
161- ignore_func_name_suffix_list : list of str
162- A suffix list of function name conditions to ignore.
161+ ignore_func_name_prefix_list : list of str
162+ A prefix list of function name conditions to ignore.
163163 ignore_info_id_list : list of int
164164 List of IDs to ignore lint checking. A constant with a
165- suffix of `INFO_ID_` can be specified.
165+ prefix of `INFO_ID_` can be specified.
166166 enable_default_or_optional_doc_check : bool
167167 If True specified, the `default` and `optional` string
168168 in docstring will be checked.
@@ -188,7 +188,7 @@ def _check_jupyter_notebook_recursively(
188188 dir_path = path ,
189189 info_list = info_list ,
190190 verbose = verbose ,
191- ignore_func_name_suffix_list = ignore_func_name_suffix_list ,
191+ ignore_func_name_prefix_list = ignore_func_name_prefix_list ,
192192 ignore_info_id_list = ignore_info_id_list ,
193193 enable_default_or_optional_doc_check = enable_def_or_opt_check )
194194 continue
@@ -197,7 +197,7 @@ def _check_jupyter_notebook_recursively(
197197 unit_info_list = check_jupyter_notebook (
198198 notebook_path = path ,
199199 verbose = verbose ,
200- ignore_func_name_suffix_list = ignore_func_name_suffix_list ,
200+ ignore_func_name_prefix_list = ignore_func_name_prefix_list ,
201201 ignore_info_id_list = ignore_info_id_list ,
202202 enable_default_or_optional_doc_check = enable_def_or_opt_check )
203203 info_list .extend (unit_info_list )
@@ -246,7 +246,7 @@ def _print_info_list(info_list, verbose):
246246
247247def _check_unit_code_cell_str (
248248 notebook_path , code_cell_idx , code_cell_str ,
249- ignore_func_name_suffix_list , ignore_info_id_list ,
249+ ignore_func_name_prefix_list , ignore_info_id_list ,
250250 enable_default_or_optional_doc_check ):
251251 """
252252 Check the single code cell.
@@ -259,11 +259,11 @@ def _check_unit_code_cell_str(
259259 Index of target code cell.
260260 code_cell_str : str
261261 Code string of target cell.
262- ignore_func_name_suffix_list : list of str
263- A suffix list of function name conditions to ignore.
262+ ignore_func_name_prefix_list : list of str
263+ A prefix list of function name conditions to ignore.
264264 ignore_info_id_list : list of int
265265 List of IDs to ignore lint checking. A constant with a
266- suffix of `INFO_ID_` can be specified.
266+ prefix of `INFO_ID_` can be specified.
267267 enable_default_or_optional_doc_check : bool
268268 If True specified, the `default` and `optional` string
269269 in docstring will be checked.
@@ -289,7 +289,7 @@ def _check_unit_code_cell_str(
289289 for func_name in func_name_list :
290290 is_func_name_to_ignore = py_module .is_func_name_to_ignore (
291291 func_name = func_name ,
292- ignore_func_name_suffix_list = ignore_func_name_suffix_list )
292+ ignore_func_name_prefix_list = ignore_func_name_prefix_list )
293293 if is_func_name_to_ignore :
294294 continue
295295 single_func_info_list = py_module .get_single_func_info_list (
0 commit comments