[Docs] Add ruff linting to .ipynb files (#645)

This commit is contained in:
William FH
2024-06-11 18:02:49 -07:00
committed by GitHub
parent 854bf2c295
commit 4eab1739da
67 changed files with 741 additions and 850 deletions
+4
View File
@@ -33,6 +33,7 @@ _MANUAL = {
"tutorials": [
"introduction.ipynb",
"customer-support/customer-support.ipynb",
"tutorials/tnt-llm/tnt-llm.ipynb",
],
}
_MANUAL_INVERSE = {v: docs_dir / k for k, vs in _MANUAL.items() for v in vs}
@@ -113,6 +114,9 @@ def copy_notebooks():
dst_path = os.path.join(
overridden_dir, os.path.relpath(src_path, examples_dir)
)
dst_path = dst_path.replace(
"tutorials/tutorials", "tutorials"
).replace("how-tos/how-tos", "how-tos")
print(f"Overriding: {src_path} to {dst_path}")
break