-
-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (117 loc) · 2.97 KB
/
pyproject.toml
File metadata and controls
133 lines (117 loc) · 2.97 KB
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
[build-system]
requires = ["uv_build>=0.9.26,<0.12.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-root = ""
[project]
name = "model-bakery"
version = "1.23.4"
description = "Smart object creation facility for Django."
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [
{ name = "berin", email = "bernardoxhc@gmail.com" },
{ name = "amureki", email = "amureki@hey.com" },
]
keywords = [
"django",
"factory",
"python",
"testing",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development",
]
dependencies = [
"django>=4.2",
]
[project.optional-dependencies]
docs = [
"Sphinx",
"sphinx-rtd-theme",
"myst-parser",
]
[dependency-groups]
dev = [
"coverage",
"pillow",
"pytest",
"pytest-django",
"black",
"ruff",
"ty>=0.0.17",
]
[project.urls]
Homepage = "https://github.com/model-bakers/model_bakery"
[tool.coverage.run]
branch = true
parallel = true
source = [
"model_bakery",
]
omit = [
"model_bakery/_types.py",
]
[tool.coverage.paths]
source = [
"model_bakery",
".tox/**/site-packages/model_bakery",
]
[tool.coverage.report]
show_missing = true
[tool.ty.rules]
# Django dynamic attributes (.objects, ._meta, etc.)
# TODO: remove these two ignores when ty adds better Django support
# https://github.com/astral-sh/ty/issues/1018
unresolved-attribute = "ignore"
possibly-missing-attribute = "ignore"
# Allow `# type: ignore` comments (mypy syntax) without warnings
unused-ignore-comment = "ignore"
unused-type-ignore-comment = "ignore"
[tool.pytest.ini_options]
addopts = "--tb=short -rxs --nomigrations"
[tool.ruff.lint]
select = [
"S", # flake8-bandit
"B", # flake8-bugbear
"C", # flake8-comprehensions
"SIM", # flake8-simplify
"I", # isort
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"D", # pydocstyle
"UP", # pyupgrade
"RUF100", # Unused noqa directive
]
ignore = ["B904", "E501", "S101", "D1", "D212"]
[tool.ruff.lint.per-file-ignores]
"tests/test_*.py" = [
"S",
]
[tool.ruff.lint.isort]
combine-as-imports=true
split-on-trailing-comma=true
section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"]
force-wrap-aliases=true
[tool.ruff.lint.isort.sections]
django = ["django"]
[tool.ruff.lint.pydocstyle]
convention = "google"