forked from abn/aiographql-client
/
pyproject.toml
151 lines (131 loc) · 2.94 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "aiographql-client"
packages = [
{ include = "aiographql", from = "src" }
]
version = "1.1.0-alpha.0"
description = "An asyncio GraphQL client built on top of aiohttp and graphql-core-next"
authors = [
"Arun Neelicattu <arun.neelicattu@gmail.com>"
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/abn/aiographql-client"
keywords = [
"aiohttp",
"asyncio",
"client",
"graphql",
"graphql-core",
"graphql-core-next",
]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Framework :: AsyncIO"
]
[tool.poetry.dependencies]
python = "^3.7"
cafeteria-asyncio = "^0.2"
aiohttp = "^3.5"
graphql-core = "^3.0"
ujson = ">=2"
[tool.poetry.dev-dependencies]
pre-commit = "^2.1"
coverage = { version = "^6.3", extras = ["toml"]}
tox = "^3.15"
pytest = "^7.0"
pytest-asyncio = "^0.18"
pytest-cov = "^3.0"
pytest-mock = "^3.1"
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
src_paths = ["src", "test"]
known_first_party = "aiographql"
[tool.pytest.ini_options]
minversion = "6.0"
asyncio_mode = "auto"
addopts = "--cov --cov-append --cov-report=term"
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
parallel = true
data_file = ".coverage/data"
source = [
"aiographql",
]
omit = [
"tests/*",
]
[tool.coverage.paths]
source = [
"src",
".tox/*/site-packages"
]
[tool.coverage.report]
skip_empty = true
ignore_errors = true
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.coverage.html]
directory = ".coverage/html"
[tool.coverage.xml]
output = ".coverage/coverage.xml"
[tool.coverage.json]
output = ".coverage/coverage.json"
[tool.tox]
legacy_tox_ini = """
[tox]
minversion = 3.13.0
isolated_build = True
envlist = clean,report,py37,py38
[testenv]
whitelist_externals =
poetry
setenv =
COVERAGE_FILE=.coverage/data.{envname}
depends =
{py37,py38}: clean
report: py37,py38
commands =
poetry install -v --no-root
pytest {posargs}
[testenv:report]
deps = coverage[toml]
skip_install = true
setenv =
COVERAGE_FILE=.coverage/data
commands =
coverage combine
coverage report
coverage html
[testenv:clean]
deps = coverage[toml]
skip_install = true
setenv =
COVERAGE_FILE=.coverage/data
commands = coverage erase
"""