Skip to content
Draft
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
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,17 @@ repos:
--allow-subclassing-any,
--exclude='./docs/'
]
# Opt-in: actually runs the examples we have credentials for, against the
# live provider APIs. Costs money and hits the network, so it never fires
# on a commit, a push, or in CI. Run it deliberately, before a release or
# after touching the examples:
# uv run pre-commit run --hook-stage manual examples-live
- id: examples-live
name: Examples Live Run (opt-in, costs money)
entry: uv run python scripts/check_examples.py --live
language: system
stages: [ manual ]
# Not file-driven: without always_run, pre-commit skips the hook whenever
# no matching file is staged, and the command above silently does nothing.
always_run: true
pass_filenames: false
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ packages = ["src/neo4j_graphrag"]

[tool.pytest.ini_options]
testpaths = ["tests"]
# scripts/ is not a package and is not installed. Put it on the path under the
# same top-level module names mypy already resolves it under.
pythonpath = ["scripts"]
filterwarnings = [
"",
]
Expand Down
Loading
Loading