-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(core): introduce Adapters API (#151) * feat(docs): add mkdocs (#153) * feat(adapter): add OpenAI adapter (#155) * chore(unit): improve code coverage (#157) * feat: update documentation (#158) * feat(demo): add examples (#159)
- Loading branch information
Showing
145 changed files
with
7,055 additions
and
4,655 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
[run] | ||
omit = lanarky/testing/* | ||
omit = | ||
lanarky/clients.py | ||
lanarky/adapters/*/__init__.py |
This file was deleted.
Oops, something went wrong.
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
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,45 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
PYTHON_VERSION: 3.9 | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Update Environment Variables | ||
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
|
||
- name: Setup Cache | ||
uses: actions/cache@v3 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- name: Deploy GitHub Pages | ||
run: | | ||
pip install 'mkdocs-material[imaging]' mdx-include termynal 'mkdocstrings[python]' | ||
mkdocs gh-deploy --force |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,24 +1,31 @@ | ||
.PHONY: help tests pre-commit | ||
help: ## shows this help message | ||
.PHONY: help tests coverage pre-commit | ||
help: ## shows this help message | ||
@echo "Usage:\n\tmake <target>" | ||
@echo "\nAvailable targets:" | ||
@awk 'BEGIN {FS = ":.*##"; } /^[$$()% a-zA-Z_-]+:.*?##/ \ | ||
{ printf "\t\033[36m%-30s\033[0m %s\n", $$1, $$2 } /^##@/ \ | ||
{ printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | ||
|
||
tests: ## run unit tests with coverage | ||
tests: ## run unit tests with coverage | ||
poetry run pytest \ | ||
--cov=lanarky --cov-report=term-missing:skip-covered \ | ||
-p pytest_asyncio -v | ||
find . -type d -name '__pycache__' -exec rm -r {} + | ||
|
||
coverage: ## run unit tests with coverage | ||
coverage: ## run unit tests with coverage | ||
poetry run coveralls | ||
|
||
pre-commit: ## run pre-commit hooks | ||
pre-commit: ## run pre-commit hooks | ||
poetry run pre-commit run --all-files | ||
|
||
build-docs: clean-docs ## build documentation | ||
poetry run sphinx-autobuild -b html --host 0.0.0.0 --port 8000 docs docs/_build/html | ||
|
||
clean-docs: ## clean documentation | ||
rm -rf docs/_build | ||
bump: ## bump version | ||
@read -p "Enter version bump (patch|minor|major): " arg; \ | ||
if [ "$$arg" != "patch" ] && [ "$$arg" != "minor" ] && [ "$$arg" != "major" ]; then \ | ||
echo "Usage: make bump (patch|minor|major)"; \ | ||
exit 1; \ | ||
fi; \ | ||
current_version=$$(poetry version -s); \ | ||
poetry version $$arg; \ | ||
new_version=$$(poetry version -s); \ | ||
git add pyproject.toml; \ | ||
git commit -m "bump(ver): $$current_version → $$new_version"; |
Oops, something went wrong.