From 0cf6401571c30d8c7a2e55e799dbd63815023625 Mon Sep 17 00:00:00 2001 From: "Gaige B. Paulsen" Date: Sat, 29 Jun 2024 13:23:11 -0400 Subject: [PATCH] Revert "fix: fix failure in test enumeration" This reverts commit eda6eed48ac2c6a96391cf1a33e706385971fc70. --- .github/workflows/tests.yml | 5 ++++- mdformat_pelican/plugin.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d06c773..c3d680a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,9 +44,12 @@ jobs: run: | pytest --cov=mdformat_pelican --cov-report=xml --cov-report=term-missing - - name: Run pytest with mdformat-gfm + - name: Install mdformat-gfm run: | pip install mdformat-gfm + + - name: Run pytest with mdformat-gfm + run: | pytest --cov=mdformat_pelican --cov-report=xml --cov-report=term-missing pre-commit-hook: diff --git a/mdformat_pelican/plugin.py b/mdformat_pelican/plugin.py index fb2930d..8223cad 100644 --- a/mdformat_pelican/plugin.py +++ b/mdformat_pelican/plugin.py @@ -144,5 +144,5 @@ def _patch_gfm_link_renderer(node: RenderTreeNode, context: RenderContext) -> st mdformat_gfm.plugin.RENDERERS["link"] = _patch_gfm_link_renderer # Register the link renderer the usual way if the gfm plugin is not installed. -except (ImportError,AttributeError) as e: +except ImportError: RENDERERS["link"] = _pelican_link_open_renderer