Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed Apr 6, 2024
1 parent 28f16a1 commit 7191f99
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 201 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-toml
- id: check-yaml
Expand All @@ -11,7 +11,7 @@ repos:
- id: check-poetry

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.10.0
rev: v2.13.0
hooks:
- id: pretty-format-toml
exclude: ^poetry.lock$
Expand All @@ -25,14 +25,14 @@ repos:
- id: tox-ini-fmt

- repo: https://github.com/ariebovenberg/slotscheck
rev: v0.17.0
rev: v0.19.0
hooks:
- id: slotscheck
language: system
exclude: ^(?!pandoc_numbering.py)

- repo: https://github.com/dosisod/refurb
rev: v1.20.0
rev: v2.0.0
hooks:
- id: refurb

Expand All @@ -42,14 +42,14 @@ repos:
- id: teyit

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
rev: v0.3.5
hooks:
- id: ruff
language: system
exclude: ^(?!pandoc_numbering.py)

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.3.0
hooks:
- id: black-jupyter
args: [--config=pyproject.toml, pandoc_numbering.py, tests]
Expand All @@ -61,14 +61,14 @@ repos:
args: [docs]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.9.0
hooks:
- id: mypy
language: system
exclude: ^(?!pandoc_numbering.py)

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
language: system
Expand Down
29 changes: 9 additions & 20 deletions pandoc_numbering.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,26 +1106,15 @@ def meta_listing(category, definition, defined):
"[WARNING] pandoc-numbering: listing-title is not correct for category "
+ category
)
if "listing-unnumbered" in definition:
if isinstance(definition["listing-unnumbered"], MetaBool):
defined[category]["listing-unnumbered"] = definition[
"listing-unnumbered"
].boolean
else:
debug(
"[WARNING] pandoc-numbering: "
"listing-unnumbered is not correct for category " + category
)
if "listing-unlisted" in definition:
if isinstance(definition["listing-unlisted"], MetaBool):
defined[category]["listing-unlisted"] = definition[
"listing-unlisted"
].boolean
else:
debug(
"[WARNING] pandoc-numbering: "
"listing-unlisted is not correct for category " + category
)
for key in ("listing-unnumbered", "listing-unlisted"):
if key in definition:
if isinstance(definition[key], MetaBool):
defined[category][key] = definition[key].boolean
else:
debug(
f"[WARNING] pandoc-numbering: "
f"{key} is not correct for category {category}"
)
if "listing-identifier" in definition:
if isinstance(definition["listing-identifier"], MetaBool):
defined[category]["listing-identifier"] = definition[
Expand Down
Loading

0 comments on commit 7191f99

Please sign in to comment.