From 3887383537ce87a3d16467589379fdb87ecf47a6 Mon Sep 17 00:00:00 2001 From: ZergLev Date: Fri, 27 Sep 2024 16:00:32 +0300 Subject: [PATCH] dependencies mistake fixed + lint --- docs/source/utils/generate_tutorials.py | 8 +++----- poetry.lock | 10 +++++----- scripts/clean.py | 2 ++ scripts/doc.py | 1 - 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/source/utils/generate_tutorials.py b/docs/source/utils/generate_tutorials.py index ecd90d1c8..38fa8237a 100644 --- a/docs/source/utils/generate_tutorials.py +++ b/docs/source/utils/generate_tutorials.py @@ -1,5 +1,4 @@ from pathlib import Path -from shutil import copy from typing import List, Optional, Set, Union, Tuple @@ -83,7 +82,8 @@ def sort_key(tutorial_file_name: Path) -> float: def iterate_tutorials_dir_generating_links(source: Path, dest: Path, base: str) -> List[Path]: """ - Recursively travel through tutorials directory, creating copies for all files under /tmp_dir/docs/source/tutorials/ root. + Recursively travel through tutorials directory, creating copies + for all files under /tmp_dir/docs/source/tutorials/ root. Created copied files have absolute path name matching source file tree structure. :param source: Tutorials root (usually tutorials/). @@ -141,6 +141,4 @@ def generate_tutorial_links_for_notebook_creation( filtered_links += [link] for included in include: - create_index_file( - included, filtered_links, dest / Path(f"index_{included[1].replace(' ', '_').lower()}.rst") - ) + create_index_file(included, filtered_links, dest / Path(f"index_{included[1].replace(' ', '_').lower()}.rst")) diff --git a/poetry.lock b/poetry.lock index 34d8b69a2..b98d45b74 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2859,7 +2859,7 @@ files = [ [[package]] name = "jupyterlab-server" -version = "2.27.4" +version = "2.27.3" description = "A set of server components for JupyterLab and JupyterLab like applications." optional = false python-versions = ">=3.8" @@ -3832,8 +3832,8 @@ files = [ [package.dependencies] numpy = [ {version = ">=1.20.3", markers = "python_version < \"3.10\""}, - {version = ">=1.21.0", markers = "python_version >= \"3.10\" and python_version < \"3.11\""}, {version = ">=1.23.2", markers = "python_version >= \"3.11\""}, + {version = ">=1.21.0", markers = "python_version >= \"3.10\" and python_version < \"3.11\""}, ] python-dateutil = ">=2.8.2" pytz = ">=2020.1" @@ -4328,7 +4328,7 @@ files = [ [[package]] name = "pyarrow" -version = "17.0.2" +version = "17.0.0" description = "Python library for Apache Arrow" optional = false python-versions = ">=3.8" @@ -4861,7 +4861,7 @@ files = [ [[package]] name = "python-on-whales" -version = "0.73.1" +version = "0.73.0" description = "A Docker client for Python, designed to be fun and intuitive!" optional = false python-versions = "<4,>=3.8" @@ -7037,4 +7037,4 @@ ydb = ["six", "ydb"] [metadata] lock-version = "2.0" python-versions = "^3.8.1,!=3.9.7" -content-hash = "511348f67731d8a26e0a269d3f8f032368a85289cdd4772df378335c57812201" +content-hash = "bb7959496a75564782f4fa4eba7879a2db721bfb5ba8f26a22967d6cccbf15c2" diff --git a/scripts/clean.py b/scripts/clean.py index 87a48532a..2b658ca2d 100644 --- a/scripts/clean.py +++ b/scripts/clean.py @@ -1,6 +1,7 @@ from pathlib import Path import shutil + # This functions cleans the outdated docs during local build def clean_docs(output_dir: str = ""): shutil.rmtree("docs/build/" + output_dir, ignore_errors=True) @@ -11,6 +12,7 @@ def clean_docs(output_dir: str = ""): shutil.rmtree("docs/source/_static/drawio", ignore_errors=True) shutil.rmtree("docs/source/drawio_src/**/export", ignore_errors=True) + # Ignored this function since it's unused. def clean(): clean_docs() diff --git a/scripts/doc.py b/scripts/doc.py index a782ba187..38a531957 100644 --- a/scripts/doc.py +++ b/scripts/doc.py @@ -6,7 +6,6 @@ import dotenv import scripts.patch_sphinx # noqa: F401 import sphinx.ext.apidoc as apidoc -import sphinx.cmd.build as build from colorama import init, Fore, Style from python_on_whales import DockerClient