From a72186fbfb7f1dc35cb9a46b874cb5e61116b52c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 27 Aug 2022 22:32:08 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#504) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-prettier: v2.7.1 → v3.0.0-alpha.0](https://github.com/pre-commit/mirrors-prettier/compare/v2.7.1...v3.0.0-alpha.0) - [github.com/PyCQA/flake8: 5.0.2 → 5.0.4](https://github.com/PyCQA/flake8/compare/5.0.2...5.0.4) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- src/furo/assets/scripts/gumshoe-patched.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e59559e9..0397c5e01 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.7.1 + rev: v3.0.0-alpha.0 hooks: - id: prettier exclude: src/furo/theme/.*|docs/(recommendations|reference/admonitions).md @@ -37,7 +37,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/PyCQA/flake8 - rev: 5.0.2 + rev: 5.0.4 hooks: - id: flake8 diff --git a/src/furo/assets/scripts/gumshoe-patched.js b/src/furo/assets/scripts/gumshoe-patched.js index 78cee8458..a1973832f 100644 --- a/src/furo/assets/scripts/gumshoe-patched.js +++ b/src/furo/assets/scripts/gumshoe-patched.js @@ -145,7 +145,7 @@ document.body.offsetHeight, document.documentElement.offsetHeight, document.body.clientHeight, - document.documentElement.clientHeight + document.documentElement.clientHeight, ); }; @@ -333,7 +333,7 @@ Array.prototype.forEach.call(navItems, function (item) { // Get the content for the nav item var content = document.getElementById( - decodeURIComponent(item.hash.substr(1)) + decodeURIComponent(item.hash.substr(1)), ); if (!content) return; @@ -462,5 +462,5 @@ // return Constructor; - } + }, );