Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moved from markdownlint-cli to pymarkdown
  • Loading branch information
jamesbraza committed Aug 8, 2025
commit 5756c221228d9abf98f3967e2f425f2a8bd2b4b8
7 changes: 3 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ repos:
hooks:
- id: nb-clean
args: [--preserve-cell-outputs, --remove-empty-cells]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.31
hooks:
- id: markdownlint
args: [--config=pyproject.toml, --configPointer=/tool/markdownlint]
- id: pymarkdown
exclude: docs/tutorials/
- repo: https://github.com/tcort/markdown-link-check
rev: v3.12.2
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# PaperQA2

<!-- pyml disable-num-lines 6 line-length -->

[![GitHub](https://img.shields.io/badge/GitHub-black?logo=github&logoColor=white)](https://github.com/Future-House/paper-qa)
[![PyPI version](https://badge.fury.io/py/paper-qa.svg)](https://badge.fury.io/py/paper-qa)
[![tests](https://github.com/Future-House/paper-qa/actions/workflows/tests.yml/badge.svg)](https://github.com/Future-House/paper-qa)
Expand Down
2 changes: 2 additions & 0 deletions packages/paper-qa-pymupdf/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# paper-qa-pymupdf

<!-- pyml disable-num-lines 6 line-length -->

[![GitHub](https://img.shields.io/badge/GitHub-black?logo=github&logoColor=white)](https://github.com/Future-House/paper-qa/tree/main/packages/paper-qa-pymupdf)
[![PyPI version](https://badge.fury.io/py/paper-qa-pymupdf.svg)](https://badge.fury.io/py/paper-qa-pymupdf)
[![tests](https://github.com/Future-House/paper-qa/actions/workflows/tests.yml/badge.svg)](https://github.com/Future-House/paper-qa)
Expand Down
2 changes: 2 additions & 0 deletions packages/paper-qa-pypdf/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# paper-qa-pypdf

<!-- pyml disable-num-lines 6 line-length -->

[![GitHub](https://img.shields.io/badge/GitHub-black?logo=github&logoColor=white)](https://github.com/Future-House/paper-qa/tree/main/packages/paper-qa-pypdf)
[![PyPI version](https://badge.fury.io/py/paper-qa-pypdf.svg)](https://badge.fury.io/py/paper-qa-pypdf)
[![tests](https://github.com/Future-House/paper-qa/actions/workflows/tests.yml/badge.svg)](https://github.com/Future-House/paper-qa)
Expand Down
19 changes: 10 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,6 @@ skip = [
"tests/stub_data/*",
]

[tool.markdownlint]
no-inline-html = false

[tool.markdownlint.line-length]
code_block_line_length = 88 # Match ruff line-length
line_length = 120 # Match ruff max-doc-length
stern = true
tables = false

[tool.mypy]
# Type-checks the interior of functions without type annotations.
check_untyped_defs = true
Expand Down Expand Up @@ -305,6 +296,16 @@ score = false
# Minimum lines number of a similarity.
min-similarity-lines = 12

[tool.pymarkdown]
plugins.line-length.code_block_line_length = 88 # Match ruff line-length
plugins.line-length.enabled = true
plugins.line-length.line_length = 120 # Match ruff max-doc-length
plugins.line-length.stern = true
plugins.line-length.tables = false
plugins.no-duplicate-heading.siblings_only = true # GitHub appends -X for duplicated headings
plugins.no-emphasis-as-heading.enabled = false
plugins.no-inline-html.enabled = false

[tool.pytest.ini_options]
# Add the specified OPTS to the set of command line arguments as if they had been
# specified by the user.
Expand Down