Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix nbdev_test with no --fname in non-nbdev repos #730

Merged
merged 1 commit into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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