-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
155 lines (138 loc) · 3.57 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.badabump]
version_type = "semver"
[tool.black]
line_length = 79
target_version = ["py38"]
[tool.coverage.run]
branch = true
source = ["aiohttp_middlewares"]
[tool.coverage.paths]
source = ["src/"]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"@abstractmethod",
"@overload",
]
omit = [
"src/*/__main__.py",
"src/*/annotations.py",
]
fail_under = 95
skip_covered = true
show_missing = true
[tool.isort]
profile = "attrs"
combine_as_imports = true
force_alphabetical_sort_within_sections = true
lines_between_types = 0
src_paths = ["src/"]
virtual_env = ".venv/"
[tool.mypy]
allow_untyped_globals = true
check_untyped_defs = true
disallow_any_decorated = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
exclude = ["docs/", "migrations/", "tests/"]
follow_imports = "normal"
follow_imports_for_stubs = true
ignore_missing_imports = false
namespace_packages = true
no_implicit_optional = true
mypy_path = "src/"
python_executable = ".venv/bin/python3"
show_column_numbers = true
show_error_codes = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_ignores = true
[tool.poetry]
name = "aiohttp-middlewares"
version = "2.4.0"
description = "Collection of useful middlewares for aiohttp applications."
authors = ["Igor Davydenko <[email protected]>"]
license = "BSD-3-Clause"
readme = "README.rst"
homepage = "https://igordavydenko.com/projects.html#aiohttp-middlewares"
repository = "https://github.com/playpauseandstop/aiohttp-middlewares"
documentation = "https://aiohttp-middlewares.readthedocs.io/"
packages = [
{include = "aiohttp_middlewares", from = "src/"},
]
keywords = ["aiohttp", "aiohttp-server", "middlewares", "aiohttp-middlewares"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: aiohttp",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
"Topic :: Utilities",
"Typing :: Typed"
]
[tool.poetry.dependencies]
python = "^3.8"
aiohttp = "^3.8.1"
async-timeout = "^4.0.2"
yarl = "^1.5.1"
[tool.poetry.group.dev.dependencies]
mypy = "^1.11.1"
[tool.poetry.group.docs.dependencies]
furo = "^2024.8.6"
sphinx = "^7.1.2"
sphinx-autobuild = "^2021.3.14"
sphinx-autodoc-typehints = "^2.0.1"
sphinx-copybutton = "^0.5.2"
sphinxext-opengraph = "^0.7.5"
[tool.poetry.group.test.dependencies]
coverage = "^6.5.0"
coveralls = "^3.3.1"
pytest = "^8.3.2"
pytest-aiohttp = "^1.0.5"
pytest-asyncio = "^0.23.8"
pytest-cov = "^5.0.0"
[tool.pytest.ini_options]
minversion = "7.2.0"
addopts = "--cov --no-cov-on-fail"
testpaths = ["tests/"]
log_level = "info"
# Local settings
asyncio_mode = "auto"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38,py39,py310,py310-minimum-requirements,py311,py312,py313
skipsdist = True
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
allowlist_externals = poetry
passenv =
PYTEST_ADDOPTS
skip_install = True
commands_pre =
poetry install --only main,test
commands =
python3 -m pytest
# Python 3.10 is last version with aiohttp, async-timeout, and yarl wheels
[testenv:py310-minimum-requirements]
commands_pre =
poetry install --only main,test
python3 -m pip install aiohttp==3.8.1 async-timeout==4.0.2 yarl==1.5.1
"""