forked from schemathesis/schemathesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
161 lines (149 loc) · 4.92 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
158
159
160
161
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "schemathesis"
version = "3.19.5"
description = "Property-based testing framework for Open API and GraphQL based apps"
keywords = ["pytest", "hypothesis", "openapi", "swagger", "graphql", "testing"]
authors = [{ name = "Dmitry Dygalo", email = "[email protected]" }]
maintainers = [{ name = "Dmitry Dygalo", email = "[email protected]" }]
requires-python = ">=3.7"
license = "MIT"
readme = "README.md"
include = ["src/schemathesis/py.typed"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: Pytest",
"Framework :: Hypothesis",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Testing",
]
dependencies = [
"backoff>=2.1.2,<3.0",
"click>=7.0,<9.0",
"colorama>=0.4,<1.0",
"curlify>=2.2.1,<3.0",
"httpx>=0.22.0,<1.0",
"hypothesis>=6.31.6,<7",
"hypothesis_graphql>=0.9.0,<1",
"hypothesis_jsonschema>=0.22.1,<1",
"importlib_metadata>=1.1,!=3.8,<5; python_version<'3.8'",
"jsonschema>=4.3.2,<5.0",
"junit-xml>=1.9,<2.0",
"pyrate-limiter>=2.10,<3.0",
"pytest-subtests>=0.2.1,<0.8.0",
"pytest>=4.6.4,<8",
"PyYAML>=5.1,<7.0",
"requests>=2.22,<3",
"starlette>=0.13,<1",
"starlette-testclient==0.2.0",
"tomli-w>=1.0.0,<2.0",
"tomli>=2.0.1,<3.0",
"typing-extensions>=3.7,<5",
"werkzeug>=0.16.0,<=3",
"yarl>=1.5,<2.0"
]
[project.optional-dependencies]
tests = [
"aiohttp>=3.8.3,<4.0",
"coverage>=6",
"fastapi>=0.86.0",
"Flask>=2.1.1,<3.0",
"pydantic>=1.10.2",
"pytest-asyncio>=0.18.0,<1.0",
"pytest-httpserver>=1.0,<2.0",
"pytest-mock>=3.7.0,<4.0",
"pytest-xdist>=2.5,<3.0",
"strawberry-graphql[fastapi]>=0.109.0",
"trustme>=0.9.0,<1.0"
]
cov = [
"coverage-enable-subprocess",
"coverage[toml]>=5.3",
]
docs = [
"sphinx",
]
dev = ["schemathesis[tests,cov,docs]"]
[project.urls]
Documentation = "https://schemathesis.readthedocs.io/en/stable/"
Changelog = "https://schemathesis.readthedocs.io/en/stable/changelog.html"
"Bug Tracker" = "https://github.com/schemathesis/schemathesis"
Funding = "https://github.com/sponsors/Stranger6667"
"Source Code" = "https://github.com/schemathesis/schemathesis"
[project.scripts]
schemathesis = "schemathesis.cli:schemathesis"
st = "schemathesis.cli:schemathesis"
[project.entry-points.pytest11]
schemathesis = "schemathesis.extra.pytest_plugin"
[tool.black]
line-length = 120
target_version = ["py37"]
[tool.isort]
profile = "black"
line_length = 120
default_section = "THIRDPARTY"
known_first_party = "schemathesis"
known_third_party = ["_pytest", "aiohttp", "click", "curlify", "fastapi", "flask", "graphene", "graphql", "graphql_server", "hypothesis", "hypothesis_graphql", "hypothesis_jsonschema", "jsonschema", "junit_xml", "packaging", "pydantic", "pytest", "pytest_subtests", "requests", "schemathesis", "starlette", "typing_extensions", "urllib3", "werkzeug", "yaml", "yarl"]
[tool.pytest.ini_options]
addopts = ["-ra", "--strict-markers", "--strict-config"]
xfail_strict = true
testpaths = "tests"
asyncio_mode = "auto"
norecursedirs = ".hypothesis .idea .git src docs .pytest_cache .mypy_cache .tox"
[tool.coverage.run]
parallel = true
branch = true
source_pkgs = ["schemathesis"]
[tool.coverage.paths]
source = ["src", ".tox/*/site-packages"]
[tool.coverage.report]
show_missing = true
skip_covered = true
precision = 2
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"pass"
]
[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C", # flake8-comprehensions
"B", # flake8-bugbear
"D", # pydocstyle
]
ignore = [
"E501", # Line too long, handled by black
"B008", # Do not perform function calls in argument defaults
"C901", # Too complex
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"D203", # One blank line before class
"D213", # Multiline summary second line
"D401", # Imperative mood
]
target-version = "py37"
# Ignore `F401` (unused import) in all `__init__.py` & `_compat.py` files.
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"_compat.py" = ["F401"]