-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (76 loc) · 2.14 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (76 loc) · 2.14 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
[project]
name = "fluxgraph"
version = "0.0.0"
description = "FluxGraph – Python integration test and validation tooling"
requires-python = ">=3.12"
# No runtime dependencies – this is a C++ project.
# Python is used only for gRPC integration tests and validation.
dependencies = []
[project.optional-dependencies]
dev = [
"grpcio>=1.78.0,<2.0.0",
"grpcio-tools>=1.78.0,<2.0.0",
"protobuf>=6.33.0,<7.0.0",
"pyyaml>=6.0.0,<7.0.0",
"pytest>=9.1.0,<9.2.0",
"ruff>=0.15.0,<1.0.0",
"mypy>=2.3.0,<2.4.0",
]
[tool.uv]
# Not a distributable Python package – deps are for test tooling only.
package = false
# ---------------------------------------------------------------------------
# Tool configuration
# ---------------------------------------------------------------------------
[tool.ruff]
line-length = 120
target-version = "py312"
exclude = [
"build",
"build-server",
"build-windows-server",
"build-windows-server-release",
"build-test",
"vcpkg_installed",
]
[tool.ruff.lint]
select = ["E", "F"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "--strict-markers -ra -vv --tb=short"
testpaths = ["tests"]
markers = [
"integration: integration tests requiring a running server",
"slow: tests that take longer than 1s",
"stress: stress/performance tests",
]
filterwarnings = [
"ignore::DeprecationWarning:grpc.*", # gRPC python often has deprecation warnings
"ignore::DeprecationWarning:google.protobuf.*",
]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.isort]
profile = "black"
line_length = 120
[tool.black]
line-length = 120
target-version = ['py37']
[tool.mypy]
python_version = "3.12"
files = ["tests"]
strict = true
ignore_missing_imports = true
warn_unused_configs = true
show_error_codes = true
exclude = "(^build/|^build-server/|^build-windows-server/|^build-windows-server-release/|^build-test/|^vcpkg_installed/)"
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
disallow_incomplete_defs = false