generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3f459c9
Showing
16 changed files
with
825 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "nbdev_template-codespaces", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "watcher", | ||
"settings": {"terminal.integrated.shell.linux": "/bin/bash"}, | ||
"mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], | ||
"forwardPorts": [4000, 8080], | ||
"appPort": [4000, 8080], | ||
"extensions": ["ms-python.python", | ||
"ms-azuretools.vscode-docker"], | ||
"runServices": ["notebook", "jekyll", "watcher"], | ||
"postStartCommand": "pip install -e ." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.6' | ||
architecture: 'x64' | ||
- name: Install the library | ||
run: | | ||
pip install nbdev jupyter | ||
pip install -e . | ||
- name: Read all notebooks | ||
run: | | ||
nbdev_read_nbs | ||
- name: Check if all notebooks are cleaned | ||
run: | | ||
echo "Check we are starting with clean git checkout" | ||
if [ -n "$(git status -uno -s)" ]; then echo "git status is not clean"; false; fi | ||
echo "Trying to strip out notebooks" | ||
nbdev_clean_nbs | ||
echo "Check that strip out was unnecessary" | ||
git status -s # display the status to see which nbs need cleaning up | ||
if [ -n "$(git status -uno -s)" ]; then echo -e "!!! Detected unstripped out notebooks\n!!!Remember to run nbdev_install_git_hooks"; false; fi | ||
- name: Check if there is no diff library/notebooks | ||
run: | | ||
if [ -n "$(nbdev_diff_nbs)" ]; then echo -e "!!! Detected difference between the notebooks and the library"; false; fi | ||
- name: Run tests | ||
run: | | ||
nbdev_test_nbs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
.jekyll-cache/ | ||
Gemfile.lock | ||
*.bak | ||
.gitattributes | ||
.last_checked | ||
.gitconfig | ||
*.bak | ||
*.log | ||
*~ | ||
~* | ||
_tmp* | ||
tmp* | ||
tags | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
.venv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
.vscode | ||
*.swp | ||
|
||
# osx generated files | ||
.DS_Store | ||
.DS_Store? | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
.idea | ||
|
||
# pytest | ||
.pytest_cache | ||
|
||
# tools/trust-doc-nbs | ||
docs_src/.last_checked | ||
|
||
# symlinks to fastai | ||
docs_src/fastai | ||
tools/fastai | ||
|
||
# link checker | ||
checklink/cookies.txt | ||
|
||
# .gitconfig is now autogenerated | ||
.gitconfig | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"# default_exp core" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# module name here\n", | ||
"\n", | ||
"> API details." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#hide\n", | ||
"from nbdev.showdoc import *" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# How to contribute | ||
|
||
## How to get started | ||
|
||
Before anything else, please install the git hooks that run automatic scripts during each commit and merge to strip the notebooks of superfluous metadata (and avoid merge conflicts). After cloning the repository, run the following command inside it: | ||
``` | ||
nbdev_install_git_hooks | ||
``` | ||
|
||
## Did you find a bug? | ||
|
||
* Ensure the bug was not already reported by searching on GitHub under Issues. | ||
* If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring. | ||
* Be sure to add the complete error messages. | ||
|
||
#### Did you write a patch that fixes a bug? | ||
|
||
* Open a new GitHub pull request with the patch. | ||
* Ensure that your PR includes a test that fails without your patch, and pass with it. | ||
* Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable. | ||
|
||
## PR submission guidelines | ||
|
||
* Keep each PR focused. While it's more convenient, do not combine several unrelated fixes together. Create as many branches as needing to keep each PR focused. | ||
* Do not mix style changes/fixes with "functional" changes. It's very difficult to review such PRs and it most likely get rejected. | ||
* Do not add/remove vertical whitespace. Preserve the original style of the file you edit as much as you can. | ||
* Do not turn an already submitted PR into your development playground. If after you submitted PR, you discovered that more work is needed - close the PR, do the required work and then submit a new PR. Otherwise each of your commits requires attention from maintainers of the project. | ||
* If, however, you submitted a PR and received a request for changes, you should proceed with commits inside that PR, so that the maintainer can see the incremental fixes and won't need to review the whole PR again. In the exception case where you realize it'll take many many commits to complete the requests, then it's probably best to close the PR, do the work and then submit it again. Use common sense where you'd choose one way over another. | ||
|
||
## Do you want to contribute to the documentation? | ||
|
||
* Docs are automatically created from the notebooks in the nbs folder. | ||
|
Oops, something went wrong.