-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (78 loc) · 1.94 KB
/
Copy pathpyproject.toml
File metadata and controls
85 lines (78 loc) · 1.94 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
[project]
name = "otdf-python"
version = "0.3.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"
dependencies = [
"cryptography>=45.0.4",
"connect-python[compiler]>=0.4.2",
"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",
]
[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
# See https://docs.astral.sh/ruff/rules/
# for rule information.
# E501: Line too long (black enforces this for us)
lint.ignore = [
"E501",
]
lint.select = [
# pycodestyle checks.
"E",
"W",
# pyflakes checks.
"F",
# flake8-bugbear checks.
"B0",
# flake8-comprehensions checks.
"C4",
# McCabe complexity
"C90",
# isort
"I",
# Performance-related rules
"PERF", # Ruff's performance rules
"PTH", # pathlib (path handling)
# Additional useful rules
"UP", # pyupgrade (modern Python features)
"SIM", # flake8-simplify (simplifications)
"RUF", # Ruff-specific rules
"FURB", # refurb (FURB)
"PT018", # flake8-pytest-style (pytest style)
]
# Ignore generated files
extend-exclude = ["otdf-python-proto/src/"]