Skip to content

Commit

Permalink
Updated pre-commit hooks and modified citation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandakumar Chandrasekhar committed Jul 2, 2024
1 parent d011545 commit e104820
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:
# See https://pre-commit.com/hooks.html for info on hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -21,12 +21,12 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.1.0
hooks:
- id: flake8
args: [--max-line-length=88]
Expand All @@ -37,7 +37,7 @@ repos:
- id: isort

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Requirements

This plugin requires:

* Python 3.8 or higher; and
* Python 3.9 or higher; and
* Pandoc 2.11 or higher [[Pandoc installation instructions](https://pandoc.org/installing.html)].

By default, the plugin looks for a `pandoc` executable on your `PATH`. If you wish, [you may specify an alternative location for your `pandoc` executable](#customizing-the-path-for-the-pandoc-executable).
Expand Down
10 changes: 7 additions & 3 deletions pelican/plugins/pandoc_reader/test/html/expected_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@
"which is a relative newcomer to theoretical physics, but one that has "
"captured the common imagination, judging by the popular explanations "
"that abound on the Web "
'<span class="citation" data-cites="mann2019 wood2019 jones2020">[1]–[3]'
'<span class="citation" data-cites="mann2019 wood2019 jones2020">'
"[1], [2], [3]"
"</span>. And whether string theory is or is not science, Popper "
"notwithstanding, is an issue that is still up for debate "
'<span class="citation" '
'data-cites="siegel2015 castelvecchi2016 alves2017 francis2019">'
"[4][7]</span>.</p>"
"[4], [5], [6], [7]</span>.</p>"
),
'<h1 class="unnumbered" id="bibliography">References</h1>',
'<div class="references csl-bib-body" id="refs" role="list">',
(
'<div class="references csl-bib-body" data-entry-spacing="0" '
'id="refs" role="list">'
),
'<div class="csl-entry" id="ref-mann2019" role="listitem">',
(
'<div class="csl-left-margin">[1] </div><div class="csl-right-inline">'
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ classifiers = [
"Issue Tracker" = "https://github.com/pelican-plugins/pandoc-reader/issues"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
python = ">=3.9.0,<4.0"
pelican = ">=4.5"
markdown = {version = "<=3.3.4", optional = true}
pyyaml = "^6.0.0"
beautifulsoup4 = "^4.9.3"
"ruamel.yaml" = "^0.17.32"
docutils = "^0.21.2"

[tool.poetry.dev-dependencies]
black = "^23"
Expand Down

0 comments on commit e104820

Please sign in to comment.