-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
ruff
precommit linting and formatting (#731)
* add ruff and pre-commit as dev-dependencies * .py-files after ruff formatting * output of notebook formatting - autofixed * manual fixes to satisfy linter * small fix to address equality test in tests/integration/test_integration_docker.py::TestMsmarcoDockerDeployment::test_instantiate_vespa_docker_from_container_name_or_id * Add explanation about linting and formatting to README.md
- Loading branch information
1 parent
e1a7da2
commit f28532b
Showing
37 changed files
with
14,173 additions
and
7,587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.3.5 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
types_or: [ python, pyi, jupyter ] | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format | ||
types_or: [ python, pyi, jupyter ] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,483 changes: 1,482 additions & 1 deletion
1,483
docs/sphinx/source/examples/Matryoshka_embeddings_in_Vespa-cloud.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
979 changes: 978 additions & 1 deletion
979
docs/sphinx/source/examples/billion-scale-vector-search-with-cohere-embeddings-cloud.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
2,715 changes: 1,391 additions & 1,324 deletions
2,715
.../sphinx/source/examples/chat_with_your_pdfs_using_colbert_langchain_and_Vespa-cloud.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
995 changes: 994 additions & 1 deletion
995
docs/sphinx/source/examples/cohere-binary-vectors-in-vespa-cloud.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.