-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (103 loc) · 3.16 KB
/
Copy pathpyproject.toml
File metadata and controls
118 lines (103 loc) · 3.16 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
116
117
118
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "configdirector-server-sdk"
dynamic = ["version"]
description = "Python server SDK for ConfigDirector. ConfigDirector is a remote configuration and feature flag service."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.10"
authors = [{ name = "ConfigDirector" }]
keywords = [
"configdirector",
"config",
"configuration",
"remote config",
"remote configuration",
"feature flag",
"feature toggle",
"feature switch",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"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",
"Typing :: Typed",
]
dependencies = ["urllib3>=2.7,<3"]
[project.urls]
Homepage = "https://www.configdirector.com"
Documentation = "https://docs.configdirector.com/sdks/server/python"
Repository = "https://github.com/ConfigDirector/python-server-sdk"
Support = "https://www.configdirector.com/support"
[dependency-groups]
dev = [
"mypy>=1.14",
"pytest>=8.3",
"pytest-cov>=6.0",
"pytest-timeout>=2.3",
"ruff>=0.9",
]
[tool.hatch.version]
path = "src/configdirector/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/configdirector"]
[tool.hatch.build.targets.sdist]
include = ["src/configdirector", "README.md", "LICENSE"]
[tool.ruff]
line-length = 110
target-version = "py310"
src = ["src", "."]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"PT", # flake8-pytest-style
"RUF", # ruff-specific
]
[tool.ruff.lint.per-file-ignores]
# Test builders mirror the dataclass fields they construct, including `id` and `type`.
"tests/*" = ["S101", "A002"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.10"
files = ["src", "tests"]
strict = true
warn_unreachable = true
enable_error_code = ["redundant-expr", "possibly-undefined", "truthy-bool"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# The timeout covers setup, call and teardown, and is generous next to the longest deliberate
# wait in the suite (~10s). Several tests park a reader on a real socket, so a threading bug
# surfaces as a suite that never finishes rather than as a failure; this turns that back into a
# failure. The thread method is the one that works here: it dumps every thread's stack, and it
# can end a run that is wedged on a lock held across a blocking read, which SIGALRM cannot.
addopts = "-ra --strict-markers --strict-config --timeout=60 --timeout-method=thread"
xfail_strict = true
[tool.coverage.run]
source = ["src/configdirector"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"\\.\\.\\.",
]