-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (91 loc) · 2.94 KB
/
pyproject.toml
File metadata and controls
106 lines (91 loc) · 2.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "confidence-openfeature-provider"
version = "0.3.1" # x-release-please-version
description = "Confidence OpenFeature provider for local flag resolution using WebAssembly"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [
{ name = "Spotify", email = "confidence@spotify.com" }
]
keywords = ["openfeature", "feature-flags", "confidence", "spotify", "wasm", "provider"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"openfeature-sdk>=0.8.0",
"wasmtime>=28.0.0",
"protobuf>=5.0.0",
"grpcio>=1.60.0",
"httpx>=0.27.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-mock>=3.12.0",
"pytest-asyncio>=0.24.0",
"pytest-httpx>=0.30.0",
"grpcio-tools>=1.60.0",
"mypy>=1.10.0",
"ruff>=0.8.0",
]
[project.urls]
Homepage = "https://github.com/spotify/confidence-resolver"
Repository = "https://github.com/spotify/confidence-resolver"
[tool.hatch.build.targets.wheel]
packages = ["src/confidence"]
[tool.hatch.build.targets.wheel.force-include]
"resources/wasm/confidence_resolver.wasm" = "confidence/wasm/confidence_resolver.wasm"
[tool.hatch.build.targets.sdist]
include = [
"src/",
"resources/",
"pyproject.toml",
"README.md",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.mypy]
python_version = "3.10"
warn_unused_configs = true
warn_redundant_casts = true
strict_equality = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_reexport = false
warn_return_any = false
# Relax strict checks that conflict with wasmtime and protobuf
disallow_any_generics = false
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = ["openfeature.*", "wasmtime.*", "grpc.*", "google.protobuf.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["confidence.proto.*"]
ignore_errors = true
[[tool.mypy.overrides]]
module = ["confidence.wasm_resolver", "confidence.local_resolver", "confidence.flag_logger", "confidence.state_fetcher", "confidence.provider", "confidence.materialization"]
# These modules use generated protobuf code which has incomplete type stubs
disable_error_code = ["attr-defined", "name-defined", "union-attr", "operator", "override", "no-untyped-call"]
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = [".venv", ".git", "*_pb2.py", "*_pb2_grpc.py"]
[tool.ruff.lint]
select = ["E", "F", "W"]
# E501 is handled by ruff format; lines it can't break are intentional
ignore = ["E501"]
[tool.ruff.format]
quote-style = "double"