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
|
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "model-bakery"
dynamic = ["version"]
description = "Smart object creation facility for Django."
readme = "README.md"
requires-python = ">=3.8"
license = {text = "Apache License 2.0"}
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.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development",
]
dependencies = [
"django>=4.2",
]
[project.optional-dependencies]
test = [
"coverage",
"pillow",
"pytest",
"pytest-django",
"black",
"ruff",
"mypy",
]
docs = [
"Sphinx",
"sphinx-rtd-theme",
"myst-parser",
]
[project.urls]
Homepage = "https://github.com/model-bakers/model_bakery"
[tool.coverage.run]
branch = true
parallel = true
source = [
"model_bakery",
]
omit = [
"model_bakery/__about__.py",
"model_bakery/_types.py",
]
[tool.coverage.paths]
source = [
"model_bakery",
".tox/**/site-packages/model_bakery",
]
[tool.coverage.report]
show_missing = true
[tool.hatch.version]
path = "model_bakery/__about__.py"
[tool.hatch.build.targets.sdist]
include = [
"/model_bakery",
]
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_calls = true
[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"
|