Skip to content

Commit

Permalink
Merge pull request #730 from seeM/fix-nbglob
Browse files Browse the repository at this point in the history
fix `nbdev_test` with no `--fname` in non-nbdev repos
  • Loading branch information
seeM authored Aug 2, 2022
2 parents 4484c84 + 3a15edc commit a951a8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nbdev/_modidx.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
'title': 'nbdev',
'tst_flags': 'notest',
'user': 'fastai',
'version': '2.1.0'},
'version': '2.1.1'},
'syms': { 'nbdev.clean': { 'nbdev.clean.clean_jupyter': 'https://nbdev.fast.ai/clean.html#clean_jupyter',
'nbdev.clean.clean_nb': 'https://nbdev.fast.ai/clean.html#clean_nb',
'nbdev.clean.nbdev_clean': 'https://nbdev.fast.ai/clean.html#nbdev_clean',
Expand Down
2 changes: 1 addition & 1 deletion nbdev/doclinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def build_modidx():
def nbglob(path=None, skip_folder_re = '^[_.]', file_glob='*.ipynb', recursive=True, key='nbs_path',
as_path=False, **kwargs):
"Find all files in a directory matching an extension given a `config_key`."
path = Path(path or config_key(key))
path = Path(path or config_key(key, '.', missing_ok=True))
if recursive is None: recursive=get_config().get('recursive', 'False').lower() == 'true'
res = globtastic(path, file_glob=file_glob, skip_folder_re=skip_folder_re, **kwargs)
return res.map(Path) if as_path else res
Expand Down
2 changes: 1 addition & 1 deletion nbs/04b_doclinks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
"def nbglob(path=None, skip_folder_re = '^[_.]', file_glob='*.ipynb', recursive=True, key='nbs_path',\n",
" as_path=False, **kwargs):\n",
" \"Find all files in a directory matching an extension given a `config_key`.\"\n",
" path = Path(path or config_key(key))\n",
" path = Path(path or config_key(key, '.', missing_ok=True))\n",
" if recursive is None: recursive=get_config().get('recursive', 'False').lower() == 'true'\n",
" res = globtastic(path, file_glob=file_glob, skip_folder_re=skip_folder_re, **kwargs)\n",
" return res.map(Path) if as_path else res"
Expand Down

0 comments on commit a951a8a

Please sign in to comment.