Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (87 loc) · 2.13 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (87 loc) · 2.13 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "rolo"
authors = [
{ name = "LocalStack Contributors", email = "info@localstack.cloud" }
]
description = "A Python framework for building HTTP-based server applications"
dependencies = [
"requests>=2.20",
"werkzeug>=3.0",
"wsproto>=1.0.0"
]
requires-python = ">=3.10"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"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",
"Programming Language :: Python :: 3.15",
"Topic :: Software Development :: Libraries"
]
dynamic = ["readme", "version"]
[project.optional-dependencies]
twisted = [
"twisted>=24"
]
hypercorn = [
"hypercorn"
]
dev = [
"pytest>=7.0",
"hypercorn",
"pydantic",
"pytest_httpserver",
"websocket-client>=1.7.0",
"coverage[toml]>=5.0.0",
"coveralls>=3.3",
"twisted[tls,http2]>=24",
"httpx[http2]",
"ruff==0.17.0"
]
docs = [
"sphinx",
"furo",
"myst_parser",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "rolo/version.py"
[tool.ruff]
# Always generate Python 3.10-compatible code.
target-version = "py310"
line-length = 100
exclude = [
".venv*",
"venv*",
"dist",
"build",
"target",
"*.egg-info",
".git",
]
[tool.ruff.lint]
select = ["B", "C", "E", "F", "I", "W", "T", "B9"]
ignore = [
"E501", # E501 Line too long - handled by the formatter, see https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
]
[tool.ruff.format]
# only the library and its tests are formatted
exclude = ["docs/**", "examples/**", "*.md"]
[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"raise NotImplemented.",
"return NotImplemented",
"def __repr__",
"__all__",
]