Skip to content

Commit 948423f

Browse files
authored
Fixing all broken links, pymarkdown (#1052)
1 parent d3760c9 commit 948423f

File tree

8 files changed

+32
-26
lines changed

8 files changed

+32
-26
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- id: mixed-line-ending
2424
- id: trailing-whitespace
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.12.2
26+
rev: v0.12.8
2727
hooks:
2828
- id: ruff-check
2929
args: [--fix, --exit-non-zero-on-fix]
@@ -54,11 +54,11 @@ repos:
5454
hooks:
5555
- id: check-mailmap
5656
- repo: https://github.com/henryiii/validate-pyproject-schema-store
57-
rev: 2025.06.23
57+
rev: 2025.08.07
5858
hooks:
5959
- id: validate-pyproject
6060
- repo: https://github.com/astral-sh/uv-pre-commit
61-
rev: 0.7.19
61+
rev: 0.8.6
6262
hooks:
6363
- id: uv-lock
6464
- repo: https://github.com/adamchainz/blacken-docs
@@ -71,11 +71,10 @@ repos:
7171
hooks:
7272
- id: nb-clean
7373
args: [--preserve-cell-outputs, --remove-empty-cells]
74-
- repo: https://github.com/igorshubovych/markdownlint-cli
75-
rev: v0.45.0
74+
- repo: https://github.com/jackdewinter/pymarkdown
75+
rev: v0.9.31
7676
hooks:
77-
- id: markdownlint
78-
args: [--config=pyproject.toml, --configPointer=/tool/markdownlint]
77+
- id: pymarkdown
7978
exclude: docs/tutorials/
8079
- repo: https://github.com/mwouts/jupytext
8180
rev: v1.17.2
@@ -89,7 +88,7 @@ repos:
8988
hooks:
9089
- id: markdown-toc-creator
9190
- repo: https://github.com/pre-commit/mirrors-mypy
92-
rev: v1.16.1
91+
rev: v1.17.1
9392
hooks:
9493
- id: mypy
9594
args: [--pretty, --ignore-missing-imports]

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# PaperQA2
22

3-
[![GitHub](https://img.shields.io/badge/github-%23121011.svg?logo=github&logoColor=white)](https://github.com/Future-House/paper-qa)
3+
<!-- pyml disable-num-lines 6 line-length -->
4+
5+
[![GitHub](https://img.shields.io/badge/GitHub-black?logo=github&logoColor=white)](https://github.com/Future-House/paper-qa)
46
[![PyPI version](https://badge.fury.io/py/paper-qa.svg)](https://badge.fury.io/py/paper-qa)
57
[![tests](https://github.com/Future-House/paper-qa/actions/workflows/tests.yml/badge.svg)](https://github.com/Future-House/paper-qa)
68
![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)
@@ -308,7 +310,7 @@ For each OpenAI tier, a pre-built setting exists to limit usage.
308310
pqa --settings 'tier1_limits' ask 'What is PaperQA2?'
309311
```
310312

311-
This will limit your system to use the [tier1_limits](paperqa/configs/tier1_limits.json),
313+
This will limit your system to use the [tier1_limits](src/paperqa/configs/tier1_limits.json),
312314
and slow down your queries to accommodate.
313315

314316
You can also specify them manually with any rate limit string that matches the specification in

docs/tutorials/settings_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
"metadata": {},
9797
"source": [
9898
"The `Settings` class is used to configure the PaperQA settings.\n",
99-
"Official documentation can be found [here](https://github.com/Future-House/paper-qa?tab=readme-ov-file#settings-cheatsheet) and the open source code can be found [here](https://github.com/Future-House/paper-qa/blob/main/paperqa/settings.py).\n",
99+
"Official documentation can be found [here](https://github.com/Future-House/paper-qa?tab=readme-ov-file#settings-cheatsheet) and the open source code can be found [here](https://github.com/Future-House/paper-qa/blob/main/src/paperqa/settings.py).\n",
100100
"\n",
101-
"Here is a basic example of how to use the `Settings` class. We will be unnecessarily verbose for the sake of clarity. Please notice that most of the settings are optional and the defaults are good for most cases. Refer to the [descriptions of each setting](https://github.com/Future-House/paper-qa/blob/main/paperqa/settings.py) for more information.\n",
101+
"Here is a basic example of how to use the `Settings` class. We will be unnecessarily verbose for the sake of clarity. Please notice that most of the settings are optional and the defaults are good for most cases. Refer to the [descriptions of each setting](https://github.com/Future-House/paper-qa/blob/main/src/paperqa/settings.py) for more information.\n",
102102
"\n",
103103
"Within this `Settings` object, I'd like to discuss specifically how the llms are configured and how `paperqa` looks for papers.\n",
104104
"\n",

docs/tutorials/settings_tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ async with aiohttp.ClientSession() as session, session.get(url, timeout=60) as r
7575
```
7676

7777
The `Settings` class is used to configure the PaperQA settings.
78-
Official documentation can be found [here](https://github.com/Future-House/paper-qa?tab=readme-ov-file#settings-cheatsheet) and the open source code can be found [here](https://github.com/Future-House/paper-qa/blob/main/paperqa/settings.py).
78+
Official documentation can be found [here](https://github.com/Future-House/paper-qa?tab=readme-ov-file#settings-cheatsheet) and the open source code can be found [here](https://github.com/Future-House/paper-qa/blob/main/src/paperqa/settings.py).
7979

80-
Here is a basic example of how to use the `Settings` class. We will be unnecessarily verbose for the sake of clarity. Please notice that most of the settings are optional and the defaults are good for most cases. Refer to the [descriptions of each setting](https://github.com/Future-House/paper-qa/blob/main/paperqa/settings.py) for more information.
80+
Here is a basic example of how to use the `Settings` class. We will be unnecessarily verbose for the sake of clarity. Please notice that most of the settings are optional and the defaults are good for most cases. Refer to the [descriptions of each setting](https://github.com/Future-House/paper-qa/blob/main/src/paperqa/settings.py) for more information.
8181

8282
Within this `Settings` object, I'd like to discuss specifically how the llms are configured and how `paperqa` looks for papers.
8383

docs/tutorials/where_do_I_get_papers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ You can also manually drag-and-drop PDFs onto each reference.
5959
To download papers, you need to get an API key for your account.
6060

6161
1. Get your library ID, and set it as the environment variable `ZOTERO_USER_ID`.
62-
- For personal libraries, this ID is given [here](https://www.zotero.org/settings/keys) at the part "_Your userID for use in API calls is XXXXXX_".
62+
- For personal libraries, this ID is given [here](https://www.zotero.org/settings/security#applications) at the part "_Your userID for use in API calls is XXXXXX_".
6363
- For group libraries, go to your group page `https://www.zotero.org/groups/groupname`, and hover over the settings link. The ID is the integer after /groups/. (_h/t pyzotero!_)
6464
2. Create a new API key [here](https://www.zotero.org/settings/keys/new) and set it as the environment variable `ZOTERO_API_KEY`.
6565
- The key will need read access to the library.

packages/paper-qa-pymupdf/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# paper-qa-pymupdf
22

3-
[![GitHub](https://img.shields.io/badge/github-%23121011.svg?logo=github&logoColor=white)](https://github.com/Future-House/paper-qa/tree/main/packages/paper-qa-pymupdf)
3+
<!-- pyml disable-num-lines 6 line-length -->
4+
5+
[![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)
46
[![PyPI version](https://badge.fury.io/py/paper-qa-pymupdf.svg)](https://badge.fury.io/py/paper-qa-pymupdf)
57
[![tests](https://github.com/Future-House/paper-qa/actions/workflows/tests.yml/badge.svg)](https://github.com/Future-House/paper-qa)
68
![License](https://img.shields.io/badge/license-AGPLv3-blue.svg)

packages/paper-qa-pypdf/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# paper-qa-pypdf
22

3-
[![GitHub](https://img.shields.io/badge/github-%23121011.svg?logo=github&logoColor=white)](https://github.com/Future-House/paper-qa/tree/main/packages/paper-qa-pypdf)
3+
<!-- pyml disable-num-lines 6 line-length -->
4+
5+
[![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)
46
[![PyPI version](https://badge.fury.io/py/paper-qa-pypdf.svg)](https://badge.fury.io/py/paper-qa-pypdf)
57
[![tests](https://github.com/Future-House/paper-qa/actions/workflows/tests.yml/badge.svg)](https://github.com/Future-House/paper-qa)
68
![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)

pyproject.toml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,6 @@ skip = [
127127
"tests/stub_data/*",
128128
]
129129

130-
[tool.markdownlint]
131-
no-inline-html = false
132-
133-
[tool.markdownlint.line-length]
134-
code_block_line_length = 88 # Match ruff line-length
135-
line_length = 120 # Match ruff max-doc-length
136-
stern = true
137-
tables = false
138-
139130
[tool.mypy]
140131
# Type-checks the interior of functions without type annotations.
141132
check_untyped_defs = true
@@ -305,6 +296,16 @@ score = false
305296
# Minimum lines number of a similarity.
306297
min-similarity-lines = 12
307298

299+
[tool.pymarkdown]
300+
plugins.line-length.code_block_line_length = 88 # Match ruff line-length
301+
plugins.line-length.enabled = true
302+
plugins.line-length.line_length = 120 # Match ruff max-doc-length
303+
plugins.line-length.stern = true
304+
plugins.line-length.tables = false
305+
plugins.no-duplicate-heading.siblings_only = true # GitHub appends -X for duplicated headings
306+
plugins.no-emphasis-as-heading.enabled = false
307+
plugins.no-inline-html.enabled = false
308+
308309
[tool.pytest.ini_options]
309310
# Add the specified OPTS to the set of command line arguments as if they had been
310311
# specified by the user.

0 commit comments

Comments
 (0)