From e52689156deeace6a34c8e27f77dfa7ec65720ab Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 11:18:43 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#1888) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 8 ++++---- jupyter_book/__init__.py | 1 - jupyter_book/cli/main.py | 1 - jupyter_book/config.py | 1 - 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ca56c59..55a4c339 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ exclude: > repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-json - id: check-yaml @@ -37,16 +37,16 @@ repos: entry: python scripts/check_doc_requirements.py - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 23.1.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 6.0.0 hooks: - id: flake8 diff --git a/jupyter_book/__init__.py b/jupyter_book/__init__.py index 207bf5ed..2d82ca88 100644 --- a/jupyter_book/__init__.py +++ b/jupyter_book/__init__.py @@ -5,7 +5,6 @@ __version__ = "0.13.1" # We connect this function to the step after the builder is initialized def setup(app): - app.add_config_value("use_jupyterbook_latex", True, "env") app.add_config_value("use_multitoc_numbering", True, "env") diff --git a/jupyter_book/cli/main.py b/jupyter_book/cli/main.py index 7f4896cf..13603fcf 100644 --- a/jupyter_book/cli/main.py +++ b/jupyter_book/cli/main.py @@ -231,7 +231,6 @@ def build( toc = PATH_SRC_FOLDER.joinpath("_toc.yml") if toc is None else Path(toc) if not get_config_only: - if not toc.exists(): _error( "Couldn't find a Table of Contents file. " diff --git a/jupyter_book/config.py b/jupyter_book/config.py index 752e7e8e..0b1b2569 100644 --- a/jupyter_book/config.py +++ b/jupyter_book/config.py @@ -272,7 +272,6 @@ def yaml_to_sphinx(yaml: dict): # HTML html = yaml.get("html") if html: - for spx_key, yml_key in [ ("html_favicon", "favicon"), ("html_baseurl", "baseurl"), -- GitLab