forked from litestar-org/polyfactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
146 lines (129 loc) · 3.53 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
[tool.poetry]
name = "polyfactory"
version = "1.17.2"
description = "Mock data generation for pydantic based models and python dataclasses"
authors = ["Na'aman Hirschfeld <nhirschfeld@gmail.com>"]
maintainers = [
"Na'aman Hirschfeld <nhirschfeld@gmail.com>",
"Peter Schutt <peter.github@proton.me>",
"Cody Fincher <cody.fincher@gmail.com>",
"Janek Nouvertné <provinzkraut@posteo.de>",
"Konstantin Mikhailov <konstantin.mikhailov@proton.me>"
]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/starlite-api/polyfactory"
repository = "https://github.com/starlite-api/polyfactory"
documentation = "https://github.com/starlite-api/polyfactory"
keywords = [
"dataclasses",
"factory",
"faker",
"mock",
"pydantic",
"pytest",
"starlite",
"tdd",
"testing",
]
classifiers = [
"Environment :: Web Environment",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Unit",
"Topic :: Utilities",
"Typing :: Typed",
]
include = ["CHANGELOG.md"]
packages = [
{ include = "polyfactory" },
]
[tool.poetry.dependencies]
python = ">=3.8,<4.0"
beanie = { version = "*", optional = true, extras = ["beanie"] }
faker = "*"
odmantic = { version = "*", optional = true, extras = ["odmantic"] }
pydantic = { version = "*", optional = true, extras = ["pydantic", "odmantic", "beanie"] }
typing-extensions = "*"
[tool.poetry.group.dev.dependencies]
beanie = "*"
email-validator = "*"
hypothesis = "*"
odmantic = "*"
pre-commit = "*"
pydantic = "*"
pytest = "*"
pytest-asyncio = "*"
pytest-cov = "*"
mongomock-motor = "^0.0.17"
[tool.poetry.extras]
pydantic = ["pydantic"]
odmantic = ["odmantic", "pydantic"]
beanie = ["beanie", "pydantic"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
include = '\.pyi?$'
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.pylint.MESSAGE_CONTROL]
disable = [
"import-outside-toplevel",
"line-too-long",
"missing-class-docstring",
"missing-module-docstring",
"not-callable",
"too-few-public-methods",
"ungrouped-imports",
"unnecessary-lambda-assignment",
]
enable = "useless-suppression"
extension-pkg-allow-list = ["pydantic"]
[tool.pylint.REPORTS]
reports = "no"
[tool.pylint.FORMAT]
max-line-length = "120"
[tool.pylint.DESIGN]
max-args = 10
max-attributes = 10
max-locals = 12
max-returns = 10
max-public-methods = 21
[tool.pylint.VARIABLES]
ignored-argument-names = "args|kwargs|_|__"
no-docstring-rgx = "(__.*__|main|test.*|.*test|.*Test|^_.*)$"
[tool.pylint.BASIC]
good-names = "_,i,e,l,g,mm,yy,T,lt,le,gt,ge,cb,fn"
[tool.coverage.run]
omit = ["*/tests/*"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'if TYPE_CHECKING:',
'except ImportError:',
'except ImportError as e:',
'\.\.\.'
]
[tool.pycln]
all = true
[tool.pydocstyle]
add-ignore = "D100,D104,D105,D106,D202,D205,D415"
add-select = "D401,D404,D417"
convention = "google"
match_dir = "polyfactory"