-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (93 loc) · 2.29 KB
/
pyproject.toml
File metadata and controls
107 lines (93 loc) · 2.29 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mongo-bakery"
version = "0.1.0"
description = "This project aims to simplify the process of creating MongoDB documents for testing purposes."
readme = "README.md"
license = "GPL-3.0-or-later"
authors = [
{name = "Roger Camargo", email = "huogerac@gmail.com"},
{name = "Vicente Marçal", email = "vicente.marcal@gmail.com"}
]
requires-python = ">=3.10"
dependencies = [
"blinker>=1.9.0",
"faker>=36.1.1",
"mongoengine>=0.20.0",
"mongomock>=4.3.0",
]
keywords = [
"MongoDB",
"Mongoengine",
"testing",
"factory",
"developer tools",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Testing",
]
[project.urls]
Homepage = "https://github.com/huogerac/mongo_bakery/issues"
[tool.hatch.version]
path = "mongo_bakery/__about__.py"
[tool.hatch.build.targets.sdist]
include = [
"/mongo_bakery",
]
[dependency-groups]
dev = [
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"ruff>=0.9.6",
"taskipy>=1.14.1",
]
[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", "third-party", "first-party", "local-folder"]
force-wrap-aliases=true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.pytest.ini_options]
python_files = [
"test*.py",
]
minversion = "6.0"
addopts = "-ra -q -vv"
testpaths = [
"tests/*",
]
[tool.taskipy.tasks]
lint = 'uv run ruff check'
pre_test = 'task lint'
test = 'pytest --cov=mongo_bakery'
post_test = 'coverage html'