File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def _re_v1():
112
112
d += L (get_config ().tst_flags ).filter ()
113
113
d += [s .replace ('_' , '-' ) for s in d ] # allow for hyphenated version of old directives
114
114
_tmp = '|' .join (list (set (d )))
115
- return re .compile (f "^[ \f \v \t ]*?(#)\s*({ _tmp } )(?!\S)" , re .MULTILINE )
115
+ return re .compile (fr "^[ \f\v\t]*?(#)\s*({ _tmp } )(?!\S)" , re .MULTILINE )
116
116
117
117
def _repl_directives (code_str ):
118
118
def _fmt (x ): return f"#| { _subv1 (x [2 ].replace ('-' , '_' ).strip ())} "
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ def rm_export(cell):
206
206
def _is_showdoc (cell ): return cell ['cell_type' ] == 'code' and _re_showdoc .search (cell .source )
207
207
def _add_directives (cell , d ):
208
208
for k ,v in d .items ():
209
- if not re .findall (f '#\| *{ k } :' , cell .source ): cell .source = f'#| { k } : { v } \n ' + cell .source
209
+ if not re .findall (fr '#\| *{ k } :' , cell .source ): cell .source = f'#| { k } : { v } \n ' + cell .source
210
210
211
211
def clean_show_doc (cell ):
212
212
"Remove ShowDoc input cells"
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def nbdev_sidebar(
110
110
path :str = None , # Path to notebooks
111
111
printit :bool = False , # Print YAML for debugging
112
112
force :bool = False , # Create sidebar even if settings.ini custom_sidebar=False
113
- skip_folder_re :str = '(?:^[_.]|^www\$)' , # Skip folders matching regex
113
+ skip_folder_re :str = r '(?:^[_.]|^www\$)' , # Skip folders matching regex
114
114
** kwargs ):
115
115
"Create sidebar.yml"
116
116
if not force and get_config ().custom_sidebar : return
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ def release_conda(
288
288
if skip_upload : return print (loc )
289
289
if not upload_user : upload_user = get_config ().conda_user
290
290
if not upload_user : return print ("`conda_user` not in settings.ini and no `upload_user` passed. Cannot upload" )
291
- if 'anaconda upload' not in res : return print (f"{ res } \n \Failed . Check auto-upload not set in .condarc. Try `--do_build False`." )
291
+ if 'anaconda upload' not in res : return print (f"{ res } \n \n Failed . Check auto-upload not set in .condarc. Try `--do_build False`." )
292
292
return anaconda_upload (name , loc )
293
293
294
294
# %% ../nbs/api/18_release.ipynb
Original file line number Diff line number Diff line change 660
660
" def _is_showdoc(cell): return cell['cell_type'] == 'code' and _re_showdoc.search(cell.source)\n " ,
661
661
" def _add_directives(cell, d):\n " ,
662
662
" for k,v in d.items():\n " ,
663
- " if not re.findall(f '#\\ | *{k}:', cell.source): cell.source = f'#| {k}: {v}\\ n' + cell.source\n " ,
663
+ " if not re.findall(fr '#\\ | *{k}:', cell.source): cell.source = f'#| {k}: {v}\\ n' + cell.source\n " ,
664
664
" \n " ,
665
665
" def clean_show_doc(cell):\n " ,
666
666
" \" Remove ShowDoc input cells\"\n " ,
Original file line number Diff line number Diff line change 215
215
" path:str=None, # Path to notebooks\n " ,
216
216
" printit:bool=False, # Print YAML for debugging\n " ,
217
217
" force:bool=False, # Create sidebar even if settings.ini custom_sidebar=False\n " ,
218
- " skip_folder_re:str='(?:^[_.]|^www\\ $)', # Skip folders matching regex\n " ,
218
+ " skip_folder_re:str=r '(?:^[_.]|^www\\ $)', # Skip folders matching regex\n " ,
219
219
" **kwargs):\n " ,
220
220
" \" Create sidebar.yml\"\n " ,
221
221
" if not force and get_config().custom_sidebar: return\n " ,
Original file line number Diff line number Diff line change 599
599
" d += L(get_config().tst_flags).filter()\n " ,
600
600
" d += [s.replace('_', '-') for s in d] # allow for hyphenated version of old directives\n " ,
601
601
" _tmp = '|'.join(list(set(d)))\n " ,
602
- " return re.compile(f \" ^[ \\ f\\ v\\ t]*?(#)\\ s*({_tmp})(?!\\ S)\" , re.MULTILINE)\n " ,
602
+ " return re.compile(fr \" ^[ \\ f\\ v\\ t]*?(#)\\ s*({_tmp})(?!\\ S)\" , re.MULTILINE)\n " ,
603
603
" \n " ,
604
604
" def _repl_directives(code_str): \n " ,
605
605
" def _fmt(x): return f\" #| {_subv1(x[2].replace('-', '_').strip())}\"\n " ,
Original file line number Diff line number Diff line change 685
685
" if skip_upload: return print(loc)\n " ,
686
686
" if not upload_user: upload_user = get_config().conda_user\n " ,
687
687
" if not upload_user: return print(\" `conda_user` not in settings.ini and no `upload_user` passed. Cannot upload\" )\n " ,
688
- " if 'anaconda upload' not in res: return print(f\" {res}\\ n\\ Failed . Check auto-upload not set in .condarc. Try `--do_build False`.\" )\n " ,
688
+ " if 'anaconda upload' not in res: return print(f\" {res}\\ n\\ nFailed . Check auto-upload not set in .condarc. Try `--do_build False`.\" )\n " ,
689
689
" return anaconda_upload(name, loc)"
690
690
]
691
691
},
You can’t perform that action at this time.
0 commit comments