Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (63 loc) · 1.77 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (63 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[project]
name = "pdf-ops"
version = "0.1.0"
description = "Containerized PDF operations (merge, extract attachments) for workflow systems"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ email = "29573973+Radko-D@users.noreply.github.com" }
]
requires-python = ">=3.14"
dependencies = [
"pypdf[crypto]>=6.16.2",
]
[project.scripts]
pdf-ops = "pdf_ops.__main__:main"
[tool.ruff]
line-length = 100
target-version = "py314"
exclude = [".venv", "__pycache__", "build", "dist", "scripts"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "UP", "B", "C4", "ARG", "ASYNC", "RUF"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ARG001", "ARG002"] # Unused args common in pytest (fixtures, side effects)
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint.isort]
known-first-party = ["pdf_ops"]
[tool.pyright]
pythonVersion = "3.14"
venvPath = "."
venv = ".venv"
include = ["src", "tests"]
exclude = [".venv", "__pycache__", "build", "dist"]
typeCheckingMode = "strict"
reportMissingTypeStubs = false
reportUnknownMemberType = false
reportUnknownArgumentType = false
reportUnknownVariableType = false
reportUnknownParameterType = false
reportUnusedImport = false
reportPrivateUsage = false
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --strict-markers -m 'not container'"
markers = [
"unit: Unit tests of pure functions and mappings",
"integration: In-process end-to-end tests through run(env)",
"container: Tests that build and run the Docker image",
"slow: Tests that take longer to run",
]
[build-system]
requires = ["uv_build>=0.10.0,<0.11.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"pre-commit>=4.6.2",
"pyright>=1.1.411",
"pytest>=9.1.1",
"ruff>=0.16.5",
]