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:
commit
45b4b761f4
6 changed files with 461 additions and 0 deletions
58
pyproject.toml
Normal file
58
pyproject.toml
Normal 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",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue