From 20ab6def48844ff398fd8b4ec79eb39339253b5e Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Sat, 17 Apr 2021 12:53:52 +0200 Subject: [PATCH 1/2] Test pre-commit --- .github/workflows/ci.yml | 2 -- sphinx_github_changelog/metadata.py | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e1a280..710b961 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,6 @@ jobs: strategy: matrix: include: - - script: lint - python_version: 3.x - script: docs python_version: 3.x - python_version: 3.7 diff --git a/sphinx_github_changelog/metadata.py b/sphinx_github_changelog/metadata.py index 2f0260b..4d64dd6 100644 --- a/sphinx_github_changelog/metadata.py +++ b/sphinx_github_changelog/metadata.py @@ -12,6 +12,10 @@ def extract_metadata() -> Mapping[str, str]: # Backport of Python 3.8's future importlib.metadata() metadata = importlib_metadata.metadata("sphinx-github-changelog") + + + + return { "author": metadata["Author"], "email": metadata["Author-email"], From 801f92eae39d089445c669e885c8b5d191829f37 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 17 Apr 2021 10:55:01 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sphinx_github_changelog/metadata.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sphinx_github_changelog/metadata.py b/sphinx_github_changelog/metadata.py index 4d64dd6..2f0260b 100644 --- a/sphinx_github_changelog/metadata.py +++ b/sphinx_github_changelog/metadata.py @@ -12,10 +12,6 @@ def extract_metadata() -> Mapping[str, str]: # Backport of Python 3.8's future importlib.metadata() metadata = importlib_metadata.metadata("sphinx-github-changelog") - - - - return { "author": metadata["Author"], "email": metadata["Author-email"],