diff --git a/.gitignore b/.gitignore index 22d1ec2f..c78031b7 100644 --- a/.gitignore +++ b/.gitignore @@ -104,7 +104,7 @@ celerybeat.pid .venv # exception for local langfuse init vars -!**/packages/exchange/.env.langfuse.local +!**/packages/exchange/.env.langfuse.local # Spyder project settings .spyderproject @@ -130,3 +130,6 @@ docs/docs/reference # uv lock file uv.lock + +# local files +.DS_Store diff --git a/justfile b/justfile index f18f5ecf..e2923c65 100644 --- a/justfile +++ b/justfile @@ -1,25 +1,18 @@ # list all tasks default: - @just --list --unsorted + @just --list # run tests test *FLAGS: - #! /usr/bin/env bash - uv run pytest tests -m "not integration" {{ FLAGS }} - if ! git diff --quiet pyproject.toml; then - uv run pytest .github/workflows {{ FLAGS }} - fi + @uv run pytest .github/workflows/ tests/ -m "not integration" {{ FLAGS }} # run integration tests integration *FLAGS: - uv run pytest tests -m integration {{ FLAGS }} + @uv run pytest tests/ -m integration {{ FLAGS }} # check licenses check-licenses: - #!/usr/bin/env bash - if ! git diff --quiet pyproject.toml; then - uv run .github/workflows/scripts/check_licenses.py pyproject.toml - fi + @uv run .github/workflows/scripts/check_licenses.py pyproject.toml packages/exchange/pyproject.toml # format code format: @@ -37,13 +30,13 @@ format: # run tests with coverage coverage *FLAGS: - uv run coverage run -m pytest tests -m "not integration" {{ FLAGS }} - uv run coverage report - uv run coverage lcov -o lcov.info + @uv run coverage run -m pytest tests/ -m "not integration" {{ FLAGS }} + @uv run coverage report + @uv run coverage lcov -o lcov.info # build docs docs: - uv sync && uv run mkdocs serve + @uv sync && uv run mkdocs serve # install pre-commit hooks install-hooks: @@ -89,8 +82,7 @@ release version: # extract tag from pyproject.toml 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 tag: diff --git a/tests/cli/test_session.py b/tests/cli/test_session.py index 75ad3376..1c057181 100644 --- a/tests/cli/test_session.py +++ b/tests/cli/test_session.py @@ -256,4 +256,4 @@ def test_prompt_overwrite_session(session_factory): check_overwrite_behavior( choice="r", expected_messages=[Message.user(text="duck duck"), Message.user(text="goose")], - ) # + )