mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
chore: housekeeping (#202)
This commit is contained in:
+4
-1
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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")],
|
||||||
) #
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user