Initial commit

Spun out from where I had it previously (a private repo) and tidied the
code up a bit. Included a bit more static analysis courtesy of ruff,
and fixed up the errors. (There weren't many.)

Update README
This commit is contained in:
James Smith 2026-01-03 15:35:20 +02:00
commit 8d94b5f96c
7 changed files with 1135 additions and 0 deletions

58
pyproject.toml Normal file
View file

@ -0,0 +1,58 @@
[project]
name = "pdf-decrypt"
version = "0.1.0"
description = "Decrypt a PDF using a saved list of passwords."
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"pypdf[full]",
"pyyaml",
]
[build-system]
requires = [
"setuptools>=45",
]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[project.scripts]
pdf_decrypt = "pdf_decrypt.pdf_decrypt:main"
[tool.ruff]
line-length = 120
indent-width = 2
[tool.ruff.lint]
select = [
"A",
"ANN",
"B",
"BLE",
"C4",
"E",
"EXE",
"F",
"FURB",
"I",
"ISC",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"RUF",
"S",
"SIM",
"TRY",
"UP",
"W",
]
ignore = [
# Because I like an indent width of 2 rather than 4
"E111",
"E114",
]