forked from snok/drf-openapi-tester
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
148 lines (135 loc) · 4 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
[tool.poetry]
name = "django-contract-tester"
version = "1.5.1"
description = "Test utility for validating OpenAPI response documentation"
authors =["Matías Cárdenas <cardenasmatias.1990@gmail.com>", "Sondre Lillebø Gundersen <sondrelg@live.no>", "Na'aman Hirschfeld <nhirschfeld@gmail.com>"]
license = "BSD-4-Clause"
readme = "README.md"
homepage = "https://github.com/maticardenas/django-contract-tester"
repository = "https://github.com/maticardenas/django-contract-tester"
documentation = "https://github.com/maticardenas/django-contract-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.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 :: Django :: 4.2',
'Framework :: Django :: 5.0',
"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.8"
django = [
{ version = '^4.2 || ^5', python = '>=3.11' },
{ version = '^4.1 || ^5', python = '>=3.10, <3.11' },
{ version = '^3 || ^4', python = '>=3.8, <3.10' },
{ version = '^3', python = '<3.8' },
]
djangorestframework = "*"
inflection = "*"
openapi-spec-validator = "^0.7.1"
prance = "*"
pyYAML = "*"
drf-spectacular = { version = "*", optional = true }
drf-yasg = { version = "*", optional = true }
django-ninja = {version = "^1.1.0", optional = true}
orjson = "^3.10.7"
[tool.poetry.extras]
drf-yasg = ["drf-yasg"]
drf-spectacular = ["drf-spectacular"]
django-ninja = ["django-ninja"]
[tool.poetry.dev-dependencies]
coverage = { extras = ["toml"], version = "^6" }
Faker = "*"
pre-commit = "*"
pylint = "*"
pytest = "*"
pytest-django = "*"
[tool.poetry.group.dev.dependencies]
ruff = "^0.3.5"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[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,
too-many-arguments,
too-many-positional-arguments,
"""
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.ruff]
lint.select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycodestyle warnings
]
lint.ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[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"