-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpyproject.toml
134 lines (119 loc) · 2.91 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
[tool.poetry]
name = "starlette-context"
version = "0.3.6"
description = "Middleware for Starlette that allows you to store and access the context data of a request. Can be used with logging so logs automatically use request headers such as x-request-id or x-correlation-id."
authors = ["Tom Wojcik <[email protected]>"]
license = "MIT"
readme = "README.rst"
classifiers = [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Topic :: Internet',
]
homepage = "https://github.com/tomwojcik/starlette-context"
repository = "https://github.com/tomwojcik/starlette-context"
keywords = ["middleware", "starlette", "fastapi"]
documentation = "https://starlette-context.readthedocs.io/"
packages = [
{ include = "starlette_context" },
]
[tool.poetry.dependencies]
python = "^3.8"
starlette = "*"
[tool.poetry.group.dev.dependencies]
coverage = "^7.0.2"
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
pytest-sugar = "^0.9.6"
pytest-xdist = "^3.1.0"
pytest-asyncio = "^0.20.3"
codecov = "^2.1.13" # https://about.codecov.io/blog/message-regarding-the-pypi-package/
httpx = "^0.23.2"
[tool.poetry.group.docs.dependencies]
sphinx = ">=5,<5.1"
sphinx-rtd-theme = "^1.1.1"
toml = "^0.10.2"
[tool.poetry.group.code-quality.dependencies]
black = "^23.1.0"
ruff = "^0.0.241"
bandit = "^1.7.4"
mypy = "^0.991"
docformatter = "^1.5.1"
pyupgrade = "^3.3.1"
pre-commit = "^3.0.4"
pre-commit-hooks = "^4.4.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 79
target-version = ['py37', 'py38']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
| profiling
)/
'''
preview = true
[tool.ruff]
select = ["E", "F"]
ignore = []
fixable = ["A", "B", "C", "D", "E", "F"]
unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"migrations"
]
line-length = 79
target-version = "py38"
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
[tool.ruff.per-file-ignores]
"starlette_context/plugins/__init__.py" = ["F401"]
[tool.docformatter]
recursive = true
pre-summary-newline = true
make-summary-multi-line = true
wrap-summaries = 79
wrap-descriptions = 79
in-place = true