Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (75 loc) · 2.04 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (75 loc) · 2.04 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
[project]
name = "taskbroker"
# we only have this here to make uv happy
# we use uv for dependency management, not packaging
version = "0.0.0"
requires-python = ">=3.11"
[dependency-groups]
dev = [
"black==26.3.1",
"devservices>=1.2.1",
"pre-commit>=4.2.0",
"pytest>=9.0.3",
"sentry-devenv>=1.22.2",
"confluent_kafka>=2.3.0",
"grpcio>=1.67.0",
"orjson>=3.10.10",
"protobuf>=5.28.3",
"psycopg2-binary>=2.9",
"pyyaml>=6.0.2",
"sentry-protos>=0.22.1",
"flake8>=7.3.0",
"isort>=5.13.2",
"mypy>=1.17.1",
"types-pyyaml>=6.0.12.20241230",
"types-protobuf>=5.27.0.20240626,<6.0.0",
]
[tool.uv]
environments = ["sys_platform == 'darwin' or sys_platform == 'linux'"]
[[tool.uv.index]]
name = "sentry-pypi"
url = "https://pypi.devinfra.sentry.io/simple"
default = true
[[tool.uv.index]]
# Org-level Dependabot registry. Declaring it here stops Dependabot from
# passing it as `--default-index`; `explicit` keeps uv from ever using it.
name = "sfw"
url = "https://sfw.security.sentry.io/pypi/simple"
explicit = true
[tool.uv.workspace]
members = ["integration_tests", "clients/python"]
[tool.mypy]
mypy_path = "integration_tests,clients/python/src"
explicit_package_bases = true
# minimal strictness settings
check_untyped_defs = true
no_implicit_reexport = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
enable_error_code = ["ignore-without-code", "redundant-self"]
local_partial_types = true # compat with dmypy
disallow_any_generics = true
disallow_untyped_defs = true
# begin: missing 3rd party stubs
[[tool.mypy.overrides]]
module = [
".conftest",
"redis.*",
"rediscluster.*",
"confluent_kafka.*",
"psycopg2.*",
"msgpack",
]
ignore_missing_imports = true
# end: missing 3rd party stubs
[tool.black]
# File filtering is taken care of in pre-commit.
line-length = 100
target-version = ['py311']
[tool.isort]
profile = "black"
line_length = 100
lines_between_sections = 1
src_paths = ["integration_tests", "clients/python/src"]