chore: housekeeping (#202)

This commit is contained in:
Lam Chau
2024-10-29 16:00:35 -07:00
committed by GitHub
parent 40da95b3e9
commit 7285cbbca3
3 changed files with 14 additions and 19 deletions
+4 -1
View File
@@ -104,7 +104,7 @@ celerybeat.pid
.venv .venv
# exception for local langfuse init vars # exception for local langfuse init vars
!**/packages/exchange/.env.langfuse.local !**/packages/exchange/.env.langfuse.local
# Spyder project settings # Spyder project settings
.spyderproject .spyderproject
@@ -130,3 +130,6 @@ docs/docs/reference
# uv lock file # uv lock file
uv.lock uv.lock
# local files
.DS_Store
+9 -17
View File
@@ -1,25 +1,18 @@
# list all tasks # list all tasks
default: default:
@just --list --unsorted @just --list
# run tests # run tests
test *FLAGS: test *FLAGS:
#! /usr/bin/env bash @uv run pytest .github/workflows/ tests/ -m "not integration" {{ FLAGS }}
uv run pytest tests -m "not integration" {{ FLAGS }}
if ! git diff --quiet pyproject.toml; then
uv run pytest .github/workflows {{ FLAGS }}
fi
# run integration tests # run integration tests
integration *FLAGS: integration *FLAGS:
uv run pytest tests -m integration {{ FLAGS }} @uv run pytest tests/ -m integration {{ FLAGS }}
# check licenses # check licenses
check-licenses: check-licenses:
#!/usr/bin/env bash @uv run .github/workflows/scripts/check_licenses.py pyproject.toml packages/exchange/pyproject.toml
if ! git diff --quiet pyproject.toml; then
uv run .github/workflows/scripts/check_licenses.py pyproject.toml
fi
# format code # format code
format: format:
@@ -37,13 +30,13 @@ format:
# run tests with coverage # run tests with coverage
coverage *FLAGS: coverage *FLAGS:
uv run coverage run -m pytest tests -m "not integration" {{ FLAGS }} @uv run coverage run -m pytest tests/ -m "not integration" {{ FLAGS }}
uv run coverage report @uv run coverage report
uv run coverage lcov -o lcov.info @uv run coverage lcov -o lcov.info
# build docs # build docs
docs: docs:
uv sync && uv run mkdocs serve @uv sync && uv run mkdocs serve
# install pre-commit hooks # install pre-commit hooks
install-hooks: install-hooks:
@@ -89,8 +82,7 @@ release version:
# extract tag from pyproject.toml # extract tag from pyproject.toml
get-tag-version: get-tag-version:
#!/usr/bin/env bash @uvx --from=toml-cli toml get --toml-path=pyproject.toml "project.version"
uvx --from=toml-cli toml get --toml-path=pyproject.toml "project.version"
# create tag from pyproject.toml # create tag from pyproject.toml
tag: tag:
+1 -1
View File
@@ -256,4 +256,4 @@ def test_prompt_overwrite_session(session_factory):
check_overwrite_behavior( check_overwrite_behavior(
choice="r", choice="r",
expected_messages=[Message.user(text="duck duck"), Message.user(text="goose")], expected_messages=[Message.user(text="duck duck"), Message.user(text="goose")],
) # )