-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
139 lines (120 loc) · 3.77 KB
/
pyproject.toml
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "asgi-user-agents"
dynamic = ["version"]
description = "User Agent integration for ASGI applications."
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = ["asgi", "starlette", "litestar", "fastapi", "quart", "user-agent"]
authors = [{ name = "Hasan Sezer Taşan", email = "[email protected]" }]
maintainers = [
{ name = "Hasan Sezer Taşan", email = "[email protected]" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Typing :: Typed",
"Environment :: Web Environment",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: AsyncIO",
"Framework :: FastAPI",
]
dependencies = ["user-agents"]
[project.urls]
Documentation = "https://github.com/hasansezertasan/asgi-user-agents#readme"
Issues = "https://github.com/hasansezertasan/asgi-user-agents/issues"
Source = "https://github.com/hasansezertasan/asgi-user-agents"
[tool.hatch.version]
path = "src/asgi_user_agents/__about__.py"
[tool.hatch.envs.default]
extra-dependencies = [
"starlette>=0.16.0",
"uvicorn>=0.20.0, <0.29.0",
"pre-commit>=3.0.0, <4.0.0",
]
[tool.hatch.envs.default.scripts]
start = "uvicorn example.main:app --reload"
pre = "pre-commit run --all-files --hook-stage manual --show-diff-on-failure"
[tool.hatch.envs.types]
extra-dependencies = ["mypy>=1.0.0", "ruff==0.4.7", "codespell==2.3.0"]
[[tool.hatch.envs.types.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.types.scripts]
typing = "mypy --install-types --non-interactive {args:src/asgi_user_agents tests}"
style = ["ruff check {args:.}"]
format = ["ruff format {args:.}"]
spelling = "codespell ."
all = ["spelling", "typing", "style", "format"]
[tool.hatch.envs.hatch-test]
extra-dependencies = [
"pytest>=6.0.0",
"pytest-asyncio>=0.14.0",
"parametrize_from_file==0.20.0",
"httpx>=0.23.3, <0.27.0",
"starlette>=0.16.0",
"fastapi>=0.63.0, <0.110.0",
"litestar>=2.0.0, <3.0.0",
"quart>=0.10.0, <0.20.0",
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.ruff]
show-fixes = true
fix = true
[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
"ANN401",
"COM",
"S",
"UP",
"CPY",
"PLC0414",
"PLR6201",
"RUF029",
"D203",
"D213"
]
preview = true
[tool.ruff.lint.isort]
known-first-party = ["asgi_user_agents"]
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
[tool.codespell]
ignore-words-list = "CrOS"
[tool.coverage.run]
source_pkgs = ["asgi_user_agents", "tests"]
branch = true
parallel = true
omit = ["src/asgi_user_agents/__about__.py"]
[tool.coverage.paths]
asgi_user_agents = [
"src/asgi_user_agents",
"*/asgi-user-agents/src/asgi_user_agents",
]
tests = ["tests", "*/asgi-user-agents/tests"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]