fastai / nbdev

Create delightful software with Jupyter Notebooks
https://nbdev.fast.ai/
Apache License 2.0
4.88k stars 488 forks source link

nbdev-ci action keeps failing when I add workflow status badge markdown in index.ipynb #1081

Closed Rahuketu86 closed 1 year ago

Rahuketu86 commented 2 years ago

version 2.3.3

My commit passes all checks locally ( I have tried everything now, nbdev_clean> nbdev_export> nbdev_prepare)

Error message in CI log

Check we are starting with clean git checkout
Trying to strip out notebooks
Check that strip out was unnecessary
 M nbs/00_core.ipynb
 M nbs/index.ipynb
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
    modified:   nbs/00_core.ipynb
    modified:   nbs/index.ipynb

no changes added to commit (use "git add" and/or "git commit -a")
!!! Detected unstripped out notebooks
!!!Remember to run nbdev_install_hooks
Error: Process completed with exit code 1.

.pre-commit-config.yaml

# See https://pre-commit.com/hooks.html for more hooks
repos:
-   repo: https://github.com/fastai/nbdev
    rev: 2.2.10
    hooks:
    -   id: nbdev_clean
    -   id: nbdev_export
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.2.0
    hooks:
#    -   id: trailing-whitespace
#    -   id: end-of-file-fixer
#    -   id: check-yaml
    -   id: check-added-large-files

Requirements in setting.ini

# Optional. Same format as setuptools requirements
# requirements = 
requirements = fastcore fastai>=2.3 seaborn plotnine altair plotly dash jupyter-dash xlrd>=1.2.0 openpyxl pyarrow sqlalchemy hvplot datashader dask[complete] sklearn pyod torch torchvision python-dotenv kaggle  fastdot opencv-python scikit-image imutils moviepy lifelines beautifulsoup4 rich[jupyter] nltk emoji trax pydrive2[fsspec] huggingface_hub[fastai] gradio
# azure-cognitiveservices-search-imagesearch
# selenium

dev_requirements = GitPython jupyter-book sphinx-click sphinx_inline_tabs sphinx-proof sphinxext-rediraffe~=0.2.3 wandb nbdev jupyterlab-myst pre-commit
# Optional. Same format as setuptools console_scripts
# console_scripts = 
# Optional. Same format as setuptools dependency-links
# dep_links = 
jph00 commented 2 years ago

Do you have a public repo we could look at?

Rahuketu86 commented 2 years ago

I will try to create one from the existing repo and share the same.