From 6c0136f075482b4e9fb641de3a53c0a2ee73d4ad Mon Sep 17 00:00:00 2001 From: "neophile-square[bot]" <136651988+neophile-square[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 12:27:12 +0000 Subject: [PATCH 1/2] [neophile] Update dependencies - Update PyCQA/isort/ pre-commit hook from 5.12.0 to 5.13.2 - Update psf/black pre-commit hook from 23.11.0 to 24.1a1 - Update pre-commit/mirrors-prettier pre-commit hook from v3.1.0 to v4.0.0-alpha.8 --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb479fcc..de5da248 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,14 +15,14 @@ repos: files: (README\.rst)|(CHANGELOG\.rst) - repo: https://github.com/PyCQA/isort/ - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort additional_dependencies: - toml - repo: https://github.com/psf/black - rev: 23.11.0 + rev: 24.1a1 hooks: - id: black @@ -39,7 +39,7 @@ repos: - id: flake8 - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier types_or: [css, scss, javascript] From 08147798155840ef8abe8dfe254656f8668dc474 Mon Sep 17 00:00:00 2001 From: Jonathan Sick Date: Tue, 2 Jan 2024 16:11:32 -0500 Subject: [PATCH 2/2] Reformat files with black 24.1a1 --- src/documenteer/conf/_toml.py | 6 +++--- src/documenteer/conf/guide.py | 12 ++++++------ src/documenteer/conf/technote.py | 6 +++--- tests/ext/jira_test.py | 1 - tests/ext/lsstdocushare_test.py | 1 - tests/ext/mockcoderefs_test.py | 1 - 6 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/documenteer/conf/_toml.py b/src/documenteer/conf/_toml.py index ba75b405..91c6b9e7 100644 --- a/src/documenteer/conf/_toml.py +++ b/src/documenteer/conf/_toml.py @@ -545,9 +545,9 @@ def set_edit_on_github( html_theme_options["use_edit_page_button"] = True html_context["github_user"] = github_owner html_context["github_repo"] = github_repo - html_context[ - "github_version" - ] = self.conf.project.github_default_branch + html_context["github_version"] = ( + self.conf.project.github_default_branch + ) html_context["doc_path"] = doc_dir @property diff --git a/src/documenteer/conf/guide.py b/src/documenteer/conf/guide.py index 83e71cb8..b2e1407b 100644 --- a/src/documenteer/conf/guide.py +++ b/src/documenteer/conf/guide.py @@ -427,9 +427,9 @@ } else: documenteer_openapi_generator = None - documenteer_openapi_path: Optional[ - str - ] = _conf.conf.project.openapi.openapi_path + documenteer_openapi_path: Optional[str] = ( + _conf.conf.project.openapi.openapi_path + ) redoc: Optional[List[Any]] = [ { "name": "REST API", @@ -439,9 +439,9 @@ "opts": {"hide-hostname": True}, } ] - redoc_uri: Optional[ - str - ] = "https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js" + redoc_uri: Optional[str] = ( + "https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js" + ) else: documenteer_openapi_generator = None documenteer_openapi_path = None diff --git a/src/documenteer/conf/technote.py b/src/documenteer/conf/technote.py index e32dfa3c..af9ebd6b 100644 --- a/src/documenteer/conf/technote.py +++ b/src/documenteer/conf/technote.py @@ -86,6 +86,6 @@ _id = T.metadata.id # noqa: F405 if _id is not None: - html_context[ # noqa: F405 - "editions_url" - ] = f"https://{_id.lower()}.lsst.io/v/" + html_context["editions_url"] = ( # noqa: F405 + f"https://{_id.lower()}.lsst.io/v/" + ) diff --git a/tests/ext/jira_test.py b/tests/ext/jira_test.py index 3b1220bd..e532e36c 100644 --- a/tests/ext/jira_test.py +++ b/tests/ext/jira_test.py @@ -4,7 +4,6 @@ for licensing information. """ - from shutil import rmtree from tempfile import mkdtemp diff --git a/tests/ext/lsstdocushare_test.py b/tests/ext/lsstdocushare_test.py index 83b24918..34553cf2 100644 --- a/tests/ext/lsstdocushare_test.py +++ b/tests/ext/lsstdocushare_test.py @@ -1,6 +1,5 @@ """Tests for `documenteer.ext.lsstdocushare`.""" - from shutil import rmtree from tempfile import mkdtemp diff --git a/tests/ext/mockcoderefs_test.py b/tests/ext/mockcoderefs_test.py index 66b527e3..8d831d61 100644 --- a/tests/ext/mockcoderefs_test.py +++ b/tests/ext/mockcoderefs_test.py @@ -1,6 +1,5 @@ """Tests for documenteer.ext.mockcoderefs.""" - from shutil import rmtree from tempfile import mkdtemp