This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
131 lines (118 loc) · 3.32 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
[tool.poetry]
name = "drf-openapi-tester"
version = "2.3.3"
description = "Test utility for validating OpenAPI response documentation"
authors = ["Sondre Lillebø Gundersen <[email protected]>", "Na'aman Hirschfeld <[email protected]>"]
license = "BSD-4-Clause"
readme = "README.md"
homepage = "https://github.com/snok/drf-openapi-tester"
repository = "https://github.com/snok/drf-openapi-tester"
documentation = "https://github.com/snok/drf-openapi-tester"
keywords = ["openapi", "swagger", "api", "testing", "schema", "django", "drf"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Framework :: Django",
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
"Framework :: Pytest",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Documentation",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Unit",
"Topic :: Utilities",
"Typing :: Typed",
]
include = ["CHANGELOG.md"]
packages = [
{ include = "openapi_tester" },
]
[tool.poetry.dependencies]
python = "^3.7"
django = [
{ version = '^3', python = '<=3.7' },
{ version = '^3 || ^4', python = '>=3.8' },
]
djangorestframework = "*"
inflection = "*"
openapi-spec-validator = ">=0.4"
prance = "*"
pyYAML = "*"
drf-spectacular = { version = "*", optional = true }
drf-yasg = { version = "*", optional = true }
[tool.poetry.extras]
drf-yasg = ["drf-yasg"]
drf-spectacular = ["drf-spectacular"]
[tool.poetry.dev-dependencies]
coverage = { extras = ["toml"], version = "^6" }
Faker = "*"
pre-commit = "*"
pylint = "*"
pytest = "*"
pytest-django = "*"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.black]
line-length = 120
preview = true
quiet = true
include = '\.pyi?$'
[tool.isort]
profile = "black"
line_length = 120
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylint.MESSAGE_CONTROL]
disable = """
unsubscriptable-object,
unnecessary-pass,
missing-function-docstring,
import-outside-toplevel,
fixme,
line-too-long,
"""
enable = "useless-suppression"
[tool.pylint.DESIGN]
max-args = 6
max-returns = 21
max-branches = 20
max-locals = 20
[tool.pylint.BASIC]
good-names = "_,e,i"
[tool.coverage.run]
source = [
"openapi_tester",
]
omit = [
"manage.py",
"test_project/*",
]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"raise NotImplementedError",
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "test_project.settings"