Skip to content

Commit b7ae2e5

Browse files
authored
DEV: Tweak pyproject.toml (#3234)
Remove pre-commit pin from dev dependencies. Remove "if 0:" from exclude_lines.
1 parent 2363750 commit b7ae2e5

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

pyproject.toml

+18-9
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,29 @@ Source = "https://github.com/py-pdf/pypdf"
3939
"Bug Reports" = "https://github.com/py-pdf/pypdf/issues"
4040

4141
[project.optional-dependencies]
42+
crypto = ["cryptography"]
43+
cryptodome = ["PyCryptodome"]
44+
image = ["Pillow>=8.0.0"]
4245
full = [
4346
"cryptography",
44-
"Pillow>=8.0.0",
47+
"Pillow>=8.0.0"
4548
]
46-
crypto = [
47-
"cryptography",
49+
dev = [
50+
"black",
51+
"flit",
52+
"pip-tools",
53+
"pre-commit",
54+
"pytest-cov",
55+
"pytest-socket",
56+
"pytest-timeout",
57+
"pytest-xdist",
58+
"wheel"
4859
]
49-
cryptodome = [
50-
"PyCryptodome",
60+
docs = [
61+
"myst_parser",
62+
"sphinx",
63+
"sphinx_rtd_theme"
5164
]
52-
image = ["Pillow>=8.0.0"]
53-
dev = ["black", "flit", "pip-tools", "pre-commit<2.18.0", "pytest-cov", "pytest-socket", "pytest-timeout", "pytest-xdist", "wheel"]
54-
docs = ["myst_parser", "sphinx", "sphinx_rtd_theme"]
5565

5666
[tool.check-wheel-contents]
5767
package = "./pypdf"
@@ -117,7 +127,6 @@ exclude_lines = [
117127
"raise NotImplementedError",
118128

119129
# Don't complain if non-runnable code isn't run:
120-
"if 0:",
121130
"if __name__ == .__main__.:",
122131
]
123132

0 commit comments

Comments
 (0)