Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ default_stages:
minimum_pre_commit_version: 2.16.0
repos:
- repo: https://github.com/biomejs/pre-commit
rev: v2.4.15
rev: v2.4.16
hooks:
- id: biome-format
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.21.2
rev: v2.23.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
rev: v0.15.15
hooks:
- id: ruff-check
types_or: [python, pyi, jupyter]
Expand Down
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,14 @@ doc = [
]

[tool.hatch]
version.source = "vcs"
envs.default.installer = "uv"
envs.default.dependency-groups = [ "dev" ]
envs.docs.dependency-groups = [ "doc" ]
envs.docs.dev-mode = true
envs.docs.scripts.build = "sphinx-build -M html docs docs/_build {args}"
envs.docs.scripts.open = "python -m webbrowser -t docs/_build/html/index.html"
envs.docs.scripts.clean = "git clean -fdX -- {args:docs}"
# hatch-test needs both:
# - dependency-groups: Python test packages (pytest, coverage, flaky, ...)
# - features: provider extras via optional-dependencies.test thin pointer
envs.hatch-test.dependency-groups = [ "dev", "test" ]
envs.docs.scripts.open = "python -m webbrowser -t docs/_build/html/index.html"
envs.docs.dependency-groups = [ "doc" ]
envs.hatch-test.features = [ "test" ]
envs.hatch-test.matrix = [
# Test the lowest and highest supported Python versions with normal deps
Expand All @@ -120,9 +117,12 @@ envs.hatch-test.matrix = [
# If the matrix variable `deps` is set to "pre",
# set the environment variable `UV_PRERELEASE` to "allow".
envs.hatch-test.overrides.matrix.deps.env-vars = [
{ key = "UV_PRERELEASE", value = "allow", if = [ "pre" ] },
{ value = "allow", key = "UV_PRERELEASE", if = [ "pre" ] },
]
version.source = "vcs"
# hatch-test needs both:
# - dependency-groups: Python test packages (pytest, coverage, flaky, ...)
# - features: provider extras via optional-dependencies.test thin pointer
envs.hatch-test.dependency-groups = [ "dev", "test" ]

[tool.ruff]
line-length = 120
Expand Down Expand Up @@ -163,14 +163,14 @@ lint.per-file-ignores."tests/*" = [ "D" ]
lint.pydocstyle.convention = "numpy"

[tool.pytest]
ini_options.markers = [
"real_llm_query: mark a test that sends data to an actual LLM provider.",
]
ini_options.testpaths = [ "tests" ]
ini_options.xfail_strict = true
ini_options.addopts = [
"--import-mode=importlib", # allow using test files with same name
]
ini_options.markers = [
"real_llm_query: mark a test that sends data to an actual LLM provider.",
]
ini_options.xfail_strict = true

[tool.coverage]
run.omit = [
Expand Down
Loading