Skip to content

Commit bca23b8

Browse files
committed
init setup
1 parent 884916a commit bca23b8

15 files changed

+441
-63
lines changed

.github/workflows/deploy.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Deploy to GitHub Pages
2+
3+
permissions:
4+
contents: write
5+
pages: write
6+
7+
on:
8+
push:
9+
branches: [ "main", "master" ]
10+
workflow_dispatch:
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps: [uses: fastai/workflows/quarto-ghp@master]

.github/workflows/test.yaml.off

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: CI
2+
on: [workflow_dispatch, pull_request, push]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps: [uses: fastai/workflows/nbdev-ci@master]

.gitignore

+52-62
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
.gitattributes
2+
_proc/
3+
index_files/
4+
sidebar.yml
5+
Gemfile.lock
6+
token
7+
_docs/
8+
conda/
9+
.last_checked
10+
.gitconfig
11+
*.bak
12+
*.log
13+
*~
14+
~*
15+
_tmp*
16+
tmp*
17+
tags
18+
119
# Byte-compiled / optimized / DLL files
220
__pycache__/
321
*.py[cod]
@@ -8,6 +26,7 @@ __pycache__/
826

927
# Distribution / packaging
1028
.Python
29+
env/
1130
build/
1231
develop-eggs/
1332
dist/
@@ -20,11 +39,9 @@ parts/
2039
sdist/
2140
var/
2241
wheels/
23-
share/python-wheels/
2442
*.egg-info/
2543
.installed.cfg
2644
*.egg
27-
MANIFEST
2845

2946
# PyInstaller
3047
# Usually these files are written by a python script from a template
@@ -39,17 +56,13 @@ pip-delete-this-directory.txt
3956
# Unit test / coverage reports
4057
htmlcov/
4158
.tox/
42-
.nox/
4359
.coverage
4460
.coverage.*
4561
.cache
4662
nosetests.xml
4763
coverage.xml
4864
*.cover
49-
*.py,cover
5065
.hypothesis/
51-
.pytest_cache/
52-
cover/
5366

5467
# Translations
5568
*.mo
@@ -58,8 +71,6 @@ cover/
5871
# Django stuff:
5972
*.log
6073
local_settings.py
61-
db.sqlite3
62-
db.sqlite3-journal
6374

6475
# Flask stuff:
6576
instance/
@@ -72,61 +83,27 @@ instance/
7283
docs/_build/
7384

7485
# PyBuilder
75-
.pybuilder/
7686
target/
7787

7888
# Jupyter Notebook
7989
.ipynb_checkpoints
8090

81-
# IPython
82-
profile_default/
83-
ipython_config.py
84-
8591
# pyenv
86-
# For a library or package, you might want to ignore these files since the code is
87-
# intended to run in multiple environments; otherwise, check them in:
88-
# .python-version
89-
90-
# pipenv
91-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94-
# install all needed dependencies.
95-
#Pipfile.lock
96-
97-
# poetry
98-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99-
# This is especially recommended for binary packages to ensure reproducibility, and is more
100-
# commonly ignored for libraries.
101-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102-
#poetry.lock
103-
104-
# pdm
105-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106-
#pdm.lock
107-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108-
# in version control.
109-
# https://pdm.fming.dev/#use-with-ide
110-
.pdm.toml
111-
112-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113-
__pypackages__/
114-
115-
# Celery stuff
92+
.python-version
93+
94+
# celery beat schedule file
11695
celerybeat-schedule
117-
celerybeat.pid
11896

11997
# SageMath parsed files
12098
*.sage.py
12199

122-
# Environments
100+
# dotenv
123101
.env
102+
103+
# virtualenv
124104
.venv
125-
env/
126105
venv/
127106
ENV/
128-
env.bak/
129-
venv.bak/
130107

131108
# Spyder project settings
132109
.spyderproject
@@ -140,21 +117,34 @@ venv.bak/
140117

141118
# mypy
142119
.mypy_cache/
143-
.dmypy.json
144-
dmypy.json
145120

146-
# Pyre type checker
147-
.pyre/
121+
.vscode
122+
*.swp
123+
124+
# osx generated files
125+
.DS_Store
126+
.DS_Store?
127+
.Trashes
128+
ehthumbs.db
129+
Thumbs.db
130+
.idea
131+
132+
# pytest
133+
.pytest_cache
134+
135+
# tools/trust-doc-nbs
136+
docs_src/.last_checked
137+
138+
# symlinks to fastai
139+
docs_src/fastai
140+
tools/fastai
141+
142+
# link checker
143+
checklink/cookies.txt
148144

149-
# pytype static type analyzer
150-
.pytype/
145+
# .gitconfig is now autogenerated
146+
.gitconfig
151147

152-
# Cython debug symbols
153-
cython_debug/
148+
_docs
154149

155-
# PyCharm
156-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158-
# and can be added to the global gitignore or merged into this file. For a more nuclear
159-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
150+
/.quarto/

00_core.ipynb

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# core\n",
8+
"\n",
9+
"> Fill in a module description here"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": null,
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"#| default_exp core"
19+
]
20+
},
21+
{
22+
"cell_type": "code",
23+
"execution_count": null,
24+
"metadata": {},
25+
"outputs": [],
26+
"source": [
27+
"#| hide\n",
28+
"from nbdev.showdoc import *"
29+
]
30+
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": null,
34+
"metadata": {},
35+
"outputs": [],
36+
"source": [
37+
"#| export\n",
38+
"def foo(): pass"
39+
]
40+
},
41+
{
42+
"cell_type": "code",
43+
"execution_count": null,
44+
"metadata": {},
45+
"outputs": [],
46+
"source": [
47+
"#| hide\n",
48+
"import nbdev; nbdev.nbdev_export()"
49+
]
50+
}
51+
],
52+
"metadata": {
53+
"kernelspec": {
54+
"display_name": "python3",
55+
"language": "python",
56+
"name": "python3"
57+
}
58+
},
59+
"nbformat": 4,
60+
"nbformat_minor": 4
61+
}

MANIFEST.in

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include settings.ini
2+
include LICENSE
3+
include CONTRIBUTING.md
4+
include README.md
5+
recursive-exclude * __pycache__

README.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
# lmtools
2-
Tools to make language models a bit easier to use
2+
3+
4+
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
5+
6+
This file will become your README and also the index of your
7+
documentation.
8+
9+
## Install
10+
11+
``` sh
12+
pip install lmtools
13+
```
14+
15+
## How to use
16+
17+
Fill me in please! Don’t forget code examples:
18+
19+
``` python
20+
1+1
21+
```
22+
23+
2

_quarto.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
project:
2+
type: website
3+
4+
format:
5+
html:
6+
theme: cosmo
7+
css: styles.css
8+
toc: true
9+
10+
website:
11+
twitter-card: true
12+
open-graph: true
13+
repo-actions: [issue]
14+
navbar:
15+
background: primary
16+
search: true
17+
sidebar:
18+
style: floating
19+
20+
metadata-files: [nbdev.yml, sidebar.yml]

0 commit comments

Comments
 (0)