-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
Copy pathpyproject.toml
157 lines (140 loc) · 4.16 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
156
157
[tool.poetry]
name = "graphql-core"
version = "3.3.0a2"
description = """
GraphQL-core is a Python port of GraphQL.js,\
the JavaScript reference implementation for GraphQL."""
license = "MIT"
authors = ["Christoph Zwerschke <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/graphql-python/graphql-core"
repository = "https://github.com/graphql-python/graphql-core"
documentation = "https://graphql-core-3.readthedocs.io/"
keywords = ["graphql"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
packages = [
{ include = "graphql", from = "src" },
{ include = "tests", format = "sdist" },
{ include = "docs", format = "sdist" },
{ include = ".bumpversion.cfg", format = "sdist" },
{ include = ".editorconfig", format = "sdist" },
{ include = ".flake8", format = "sdist" },
{ include = ".readthedocs.yaml", format = "sdist" },
{ include = "poetry.lock", format = "sdist" },
{ include = "tox.ini", format = "sdist" },
{ include = "CODEOWNERS", format = "sdist" },
{ include = "SECURITY.md", format = "sdist" }
]
[tool.poetry.urls]
Changelog = "https://github.com/graphql-python/graphql-core/releases"
[tool.poetry.dependencies]
python = "^3.7"
typing-extensions = [
{ version = "^4.4", python = "<3.10" }
]
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.2"
pytest-asyncio = ">=0.20,<1"
pytest-benchmark = "^4.0"
pytest-cov = "^4.0"
pytest-describe = "^2.0"
pytest-timeout = "^2.1"
tox = "^3.26"
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
black = "22.10.0"
flake8 = "^5.0"
flake8-bandit = "^4.1"
flake8-bugbear = "22.9.23"
isort = "^5.10"
mypy = "0.982"
bump2version = ">=1.0,<2"
[tool.poetry.group.doc]
optional = true
[tool.poetry.group.doc.dependencies]
# Sphinx >= 4.4 has conflicting dependencies with Flake8
sphinx = ">= 4.3,<6"
sphinx_rtd_theme = ">=1,<2"
[tool.bandit]
exclude_dirs = ["tests"]
[tool.black]
target-version = ["py37", "py38", "py39", "py310", "py311"]
[tool.coverage.run]
branch = true
source = ["src", "tests"]
omit = [
"*/conftest.py",
"*/test_*_fuzz.py",
"*/assert_valid_name.py",
"*/cached_property.py",
"*/character_classes.py",
"*/is_iterable.py",
"*/subscription/__init__.py"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"except ImportError:",
"# Python <",
"raise NotImplementedError",
'raise TypeError\(f?"Unexpected',
"assert False,",
'\s+next\($',
"if MYPY:",
"if TYPE_CHECKING:",
'^\s+\.\.\.$',
'^\s+pass$'
]
ignore_errors = true
[tool.isort]
src_paths = ["src", "tests"]
skip_glob = ["src/**/__init__.py"]
profile = "black"
force_single_line = false
lines_after_imports = 2
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
no_implicit_optional = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"graphql.pyutils.frozen_dict",
"graphql.pyutils.frozen_list",
"graphql.type.introspection",
"tests.*"
]
disallow_untyped_defs = false
[tool.pytest.ini_options]
minversion = "7.2"
# Only run benchmarks as tests.
# To actually run the benchmarks, use --benchmark-enable on the command line.
# To run the slow tests (fuzzing), add --run-slow on the command line.
addopts = "--benchmark-disable"
# Deactivate default name pattern for test classes (we use pytest_describe).
python_classes = "PyTest*"
# Handle all async fixtures and tests automatically by asyncio
asyncio_mode = "auto"
# Set a timeout in seconds for aborting tests that run too long.
timeout = "100"
# Ignore config options not (yet) available in older Python versions.
filterwarnings = "ignore::pytest.PytestConfigWarning"
[build-system]
requires = ["poetry_core>=1.2,<2"]
build-backend = "poetry.core.masonry.api"