-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
127 lines (116 loc) · 2.74 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "uapi"
description = "A Python HTTP superframework"
authors = [{name = "Tin Tvrtkovic", email = "tinchester@gmail.com"}]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Typing :: Typed",
]
dependencies = [
"cattrs >= 23.2.2",
"incant >= 23.2.0",
"itsdangerous",
"attrs >= 23.1.0",
"orjson>=3.10.7",
]
requires-python = ">=3.10"
readme = "README.md"
license = {file = "LICENSE"}
dynamic = ["version"]
[tool.pdm.dev-dependencies]
lint = [
"black",
"ruff",
"mypy>=1.4.1",
]
test = [
"coverage>=7.6.1",
"pytest-asyncio",
"httpx",
"hypercorn",
"aioredis==1.3.1",
"uvicorn",
"uapi[lint, frameworks]",
"python-multipart>=0.0.6",
"pytest-mypy-plugins>=3.0.0",
"pytest-xdist>=3.5.0",
]
frameworks = [
"aiohttp>=3.10.5",
"flask",
"quart",
"starlette",
"django",
]
docs = [
"sphinx",
"furo",
"myst_parser",
"sphinx_inline_tabs",
"sphinx-autobuild>=2021.3.14",
"uapi[frameworks]",
]
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.black]
skip_magic_trailing_comma = true
[tool.mypy]
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "django.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "aioredis.*"
ignore_missing_imports = true
[tool.coverage.run]
parallel = true
source_pkgs = ["uapi"]
[tool.ruff]
src = ["src", "tests"]
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"N", # pep8-naming
"YTT", # flake8-2020
"S", # flake8-bandit
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"ISC", # flake8-implicit-str-concat
"RET", # flake8-return
"SIM", # flake8-simplify
"DTZ", # flake8-datetimez
"T20", # flake8-print
"PGH", # pygrep-hooks
"PLC", # Pylint
"PIE", # flake8-pie
"RUF", # ruff
"I", # isort
]
ignore = [
"E501", # line length is handled by black
"E731", # assigning lambdas
"S101", # assert
"PGH003", # leave my type: ignores alone
"B006", # trust me
"B008", # can't get it to work with extend-immutable-calls
"N818", # Exceptions
"RUF006", # Buggy for now
"RUF013", # False implicit optionals
]
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }