-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (80 loc) · 2.5 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (80 loc) · 2.5 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
[tool.uv]
package = false
default-groups = ["dev", "docs", "bench"]
required-version = ">=0.8.6"
exclude-newer = "7 days"
exclude-newer-package = { idna = "2026-06-03T00:00:00Z" }
[tool.uv.workspace]
members = ["src/httpx2", "src/httpcore2"]
[tool.uv.sources]
httpcore2 = { workspace = true }
httpx2 = { workspace = true }
[dependency-groups]
dev = [
"httpx2[brotli,cli,http2,socks,zstd]",
"httpcore2[asyncio,trio,http2,socks]",
# Tests
"chardet==6.0.0.post1",
"coverage[toml]==7.10.6",
"cryptography==46.0.7",
"pytest>=9.0.3",
"pytest-codspeed>=4.1.1",
"pytest-httpbin==2.0.0",
"pytest-trio==0.8.0",
"trio==0.31.0",
"trio-typing==0.10.0",
"trustme==1.2.1",
"uvicorn>=0.35",
"werkzeug>=3.1.6",
# Linting
"mypy==1.17.1",
"ruff==0.15.13",
# Packaging
"build==1.3.0",
"twine==6.1.0",
]
docs = ["zensical>=0.0.41", "mkdocstrings[python]>=0.27"]
bench = [
"aiohttp>=3.10.2",
"matplotlib>=3.9",
"pyinstrument>=4.6.2",
"urllib3>=2.2.2",
]
[tool.ruff]
line-length = 120
exclude = ["src/httpcore2/httpcore2/_sync", "tests/httpcore2/_sync"]
[tool.ruff.lint]
select = ["B", "C4", "E", "F", "I", "PERF", "PIE", "UP", "W"]
ignore = ["B904", "B028", "C401", "PERF203"]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["httpx2", "httpcore2"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403", "F405"]
[tool.mypy]
ignore_missing_imports = true
strict = true
[tool.pytest.ini_options]
addopts = "-rxXs --import-mode=importlib"
testpaths = ["tests"]
filterwarnings = [
"error",
"ignore: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.:RuntimeWarning",
# See: https://github.com/agronholm/anyio/issues/508
"ignore: trio.MultiError is deprecated since Trio 0.22.0:trio.TrioDeprecationWarning",
]
markers = [
"copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accommodate e.g. our test setup",
"network: marks tests which require network connection. Used in 3rd-party build environments that have network disabled.",
"benchmark: marks CodSpeed benchmark tests under tests/test_benchmark.py.",
]
[tool.coverage.run]
source_pkgs = ["httpx2", "httpcore2", "tests"]
omit = ["src/httpcore2/httpcore2/_sync/*", "tests/test_benchmark.py"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"raise NotImplementedError",
"@(typing\\.)?overload",
]