From a215327b26a2472754bdbc0dae8750664965eb40 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:17:26 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .cspell.json | 7 +++++- .pre-commit-config.yaml | 4 ++-- .vscode/settings.json | 26 ++++++++++++++++----- docs/conf.py | 50 ++++++++++++++++++----------------------- 4 files changed, 50 insertions(+), 37 deletions(-) diff --git a/.cspell.json b/.cspell.json index 84dc62c..acccb6e 100644 --- a/.cspell.json +++ b/.cspell.json @@ -119,5 +119,10 @@ "venv" ], "version": "0.2", - "enableFiletypes": ["git-commit", "julia", "jupyter"] + "enableFiletypes": [ + "git-commit", + "github-actions-workflow", + "julia", + "jupyter" + ] } diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dbadd70..885dc83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,8 +41,8 @@ repos: - --repo-title=Pawian Tools - id: format-setup-cfg - - repo: https://github.com/psf/black - rev: 23.11.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: PLEASE-UPDATE hooks: - id: black - id: black-jupyter diff --git a/.vscode/settings.json b/.vscode/settings.json index 9132578..f100444 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,8 @@ { "[git-commit]": { - "editor.rulers": [72], + "editor.rulers": [ + 72 + ], "rewrap.wrappingColumn": 72 }, "[ipynb]": { @@ -20,30 +22,42 @@ "source.organizeImports": true }, "editor.defaultFormatter": "ms-python.black-formatter", - "editor.rulers": [88] + "editor.rulers": [ + 88 + ] }, "[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "black-formatter.importStrategy": "fromEnvironment", - "coverage-gutters.coverageFileNames": ["coverage.xml"], + "coverage-gutters.coverageFileNames": [ + "coverage.xml" + ], "coverage-gutters.coverageReportFileName": "**/htmlcov/index.html", "coverage-gutters.showGutterCoverage": false, "coverage-gutters.showLineCoverage": true, "cSpell.enabled": true, + "diffEditor.experimental.showMoves": true, "editor.formatOnSave": true, "git.rebaseWhenSync": true, - "github-actions.workflows.pinned.workflows": [".github/workflows/ci.yml"], + "github-actions.workflows.pinned.workflows": [ + ".github/workflows/ci.yml" + ], "gitlens.telemetry.enabled": false, "livePreview.defaultPreviewPath": "docs/_build/html", - "mypy-type-checker.args": ["--config-file=${workspaceFolder}/pyproject.toml"], + "mypy-type-checker.args": [ + "--config-file=${workspaceFolder}/pyproject.toml" + ], "mypy-type-checker.importStrategy": "fromEnvironment", "notebook.gotoSymbols.showAllSymbols": true, "python.analysis.autoImportCompletions": false, "python.analysis.inlayHints.pytestParameters": true, "python.analysis.typeCheckingMode": "strict", "python.languageServer": "Pylance", - "python.testing.pytestArgs": ["--color=no", "--no-cov"], + "python.testing.pytestArgs": [ + "--color=no", + "--no-cov" + ], "python.testing.pytestEnabled": true, "python.testing.unittestEnabled": false, "rewrap.wrappingColumn": 88, diff --git a/docs/conf.py b/docs/conf.py index 0bbe819..9541bc8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -34,17 +34,15 @@ # -- Generate API ------------------------------------------------------------ shutil.rmtree("api", ignore_errors=True) subprocess.call( - " ".join( - [ - "sphinx-apidoc", - "../src/", - "-o api/", - "--force", - "--no-toc", - "--templatedir _templates", - "--separate", - ] - ), + " ".join([ + "sphinx-apidoc", + "../src/", + "-o api/", + "--force", + "--no-toc", + "--templatedir _templates", + "--separate", + ]), shell=True, # noqa: S602 ) @@ -90,12 +88,10 @@ "members": True, "undoc-members": True, "show-inheritance": True, - "special-members": ", ".join( - [ - "__call__", - "__eq__", - ] - ), + "special-members": ", ".join([ + "__call__", + "__eq__", + ]), } autodoc_member_order = "bysource" autodoc_typehints_format = "short" @@ -252,17 +248,15 @@ def get_nb_execution_mode() -> str: if nb_execution_mode != "off": print("Generating module dependency tree...") subprocess.call( - " ".join( - [ - "HOME=.", # in case of calling through tox - "pydeps", - f"../src/{PACKAGE}", - "-o module_structure.svg", - "--exclude *._*", # hide private modules - "--max-bacon=1", # hide external dependencies - "--noshow", - ] - ), + " ".join([ + "HOME=.", # in case of calling through tox + "pydeps", + f"../src/{PACKAGE}", + "-o module_structure.svg", + "--exclude *._*", # hide private modules + "--max-bacon=1", # hide external dependencies + "--noshow", + ]), shell=True, # noqa: S602 ) if os.path.exists("module_structure.svg"):