-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (104 loc) · 3.23 KB
/
pyproject.toml
File metadata and controls
115 lines (104 loc) · 3.23 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[project]
name = "otdf-python"
version = "0.4.3"
description = "Unofficial OpenTDF SDK for Python"
readme = "README.md"
authors = [
{ name = "b-long", email = "b-long@users.noreply.github.com" }
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"cryptography>=45.0.4",
"connect-python>=0.6.0,<0.7",
"protoc-gen-connect-python>=0.6.0,<0.7",
"httpx>=0.28.1",
"protobuf>=6.31.1",
"pyjwt>=2.10.1",
"typing-extensions>=4.14.1",
# Legacy gRPC support (may be removed in future versions)
"grpcio>=1.74.0",
"grpcio-tools>=1.74.0",
"grpcio-status>=1.74.0",
"protoc-gen-openapiv2>=0.0.1",
]
[project.urls]
Homepage = "https://github.com/b-long/opentdf-python-sdk"
Repository = "https://github.com/b-long/opentdf-python-sdk"
Issues = "https://github.com/b-long/opentdf-python-sdk/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = [
"src/otdf_python",
"otdf-python-proto/src/otdf_python_proto",
]
[dependency-groups]
dev = [
"pydantic-settings>=2.10.1",
"pytest>=8.4.1",
"respx>=0.21.1",
"ruff>=0.12.10",
"tomli>=2.2.1 ; python_full_version < '3.11'",
]
[tool.pytest.ini_options]
markers = [
"integration: mark a test as an integration test."
]
testpaths = ["tests"]
norecursedirs = ["otdf-python-proto"]
[tool.ruff]
line-length = 88
target-version = "py310"
# See https://docs.astral.sh/ruff/rules/
# for rule information.
# E501: Line too long (black enforces this for us)
lint.ignore = [
"E501",
]
lint.select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # McCabe complexity
"D", # pydocstyle
"DOC", # pydoclint
"E", # pycodestyle errors
"F", # pyflakes
"FURB", # refurb
"I", # isort
"PERF", # performance
"PIE", # flake8-pie
"PT018", # pytest style
"PTH", # pathlib
"Q", # flake8-quotes
"RUF", # ruff-specific
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warnings
]
# Ignore generated files
extend-exclude = ["otdf-python-proto/src/"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D100", "D101", "D102", "D103", "D107", "D400", "D401", "D415"]
"otdf-python-proto/**" = ["D"] # Ignore all D (docstring) rules for generated proto files
# TODO: Remaining work - 4 buckets to fix (140 errors remaining):
# Bucket #1: D102 (missing method docstrings) - 98 errors
# Bucket #2: D105 (missing magic method docstrings) - 23 errors
# Bucket #3: D205 (blank line formatting), D103, D417, D104 - 19 errors
"src/**" = ["D102", "D105", "D205"]