Skip to content

Commit b036ad3

Browse files
authored
DOC: Minor readability increases
1. Sort the API reference, de-emphasizing the deprecated PdfMerger. 2. Add new lines to .pre-commit-config.yaml.
1 parent 29683d3 commit b036ad3

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,32 @@ repos:
1717
exclude: "docs/make.bat"
1818
- id: check-added-large-files
1919
args: ['--maxkb=1000']
20+
2021
- repo: https://github.com/psf/black
2122
rev: 23.3.0
2223
hooks:
2324
- id: black
2425
args: [--target-version, py37]
26+
2527
- repo: https://github.com/asottile/blacken-docs
2628
rev: 1.14.0
2729
hooks:
2830
- id: blacken-docs
2931
additional_dependencies: [black==22.1.0]
3032
exclude: "docs/user/robustness.md"
33+
3134
- repo: https://github.com/charliermarsh/ruff-pre-commit
3235
rev: v0.1.9
3336
hooks:
3437
- id: ruff
3538
args: ['--fix']
39+
3640
- repo: https://github.com/asottile/pyupgrade
3741
rev: v3.3.2
3842
hooks:
3943
- id: pyupgrade
4044
args: [--py37-plus]
45+
4146
- repo: https://github.com/pycqa/flake8
4247
rev: 5.0.4
4348
hooks:

docs/index.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ You can contribute to `pypdf on GitHub <https://github.com/py-pdf/pypdf>`_.
4949

5050
modules/PdfReader
5151
modules/PdfWriter
52-
modules/PdfMerger
53-
modules/PageObject
54-
modules/Transformation
55-
modules/DocumentInformation
56-
modules/XmpInformation
5752
modules/Destination
58-
modules/RectangleObject
53+
modules/DocumentInformation
5954
modules/Field
60-
modules/PageRange
61-
modules/annotations
6255
modules/Fit
56+
modules/PageObject
57+
modules/PageRange
6358
modules/PaperSize
59+
modules/PdfMerger
60+
modules/RectangleObject
61+
modules/Transformation
62+
modules/XmpInformation
63+
modules/annotations
6464
modules/constants
6565
modules/errors
6666
modules/generic

0 commit comments

Comments
 (0)