Skip to content

Commit

Permalink
prep work
Browse files Browse the repository at this point in the history
  • Loading branch information
callmephilip committed Jan 27, 2025
1 parent 73fa5d4 commit 42fd470
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/fastai/nbdev
rev: 2.2.10
hooks:
- id: nbdev_clean
- id: nbdev_export
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = 0.0.1

### OPTIONAL ###

# requirements = fastcore
requirements = python-dotenv fastcore
# dev_requirements =
# console_scripts =

Expand Down
32 changes: 29 additions & 3 deletions src/00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,43 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| hide\n",
"from nbdev.showdoc import *"
"from nbdev.showdoc import *\n",
"\n",
"from dotenv import load_dotenv\n",
"\n",
"load_dotenv()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"'bar'"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| export\n",
"def foo(): pass"
Expand Down
1 change: 1 addition & 0 deletions sugar_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.0.1"
8 changes: 8 additions & 0 deletions sugar_sdk/_modidx.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Autogenerated by nbdev

d = { 'settings': { 'branch': 'main',
'doc_baseurl': '/sugar_sdk/',
'doc_host': 'https://velodrome-finance.github.io',
'git_url': 'https://github.com/velodrome-finance/sugar-sdk/',
'lib_path': 'sugar_sdk'},
'syms': {'sugar_sdk.core': {'sugar_sdk.core.foo': ('core.html#foo', 'sugar_sdk/core.py')}}}
9 changes: 9 additions & 0 deletions sugar_sdk/core.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Fill in a module description here"""

# AUTOGENERATED! DO NOT EDIT! File to edit: ../src/00_core.ipynb.

# %% auto 0
__all__ = ['foo']

# %% ../src/00_core.ipynb 3
def foo(): pass

0 comments on commit 42fd470

Please sign in to comment.