forked from betaboon/testcontainers-on-whales
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
128 lines (114 loc) · 2.97 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
[project]
license = {text = "MIT"}
authors = [
{name = "betaboon", email = "[email protected]"},
]
name = "testcontainers-on-whales"
description = "A library that provides lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a container."
readme = "README.md"
keywords = ["testing", "containers", "podman", "docker", "test automation"]
classifiers = [
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ["version"]
requires-python = ">=3.9"
dependencies = [
"python-on-whales>=0.51.1",
"requests>=2.28.1",
]
[project.urls]
repository = "https://github.com/betaboon/testcontainers-on-whales"
changelog = "https://github.com/betaboon/testcontainers-on-whales/releases"
[project.optional-dependencies]
rabbitmq = [
"pika>=1.3.0",
]
redis = [
"redis>=4.3.4",
]
postgres = [
"psycopg2-binary>=2.9.3",
"sqlalchemy>=1.4.39",
]
minio = [
"boto3>=1.24.73",
]
eventstoredb = [
"eventstoredb>=0.1.1",
]
[tool.pdm.dev-dependencies]
dev = [
"pre-commit>=2.20.0",
"gitlint>=0.17.0",
"python-semantic-release @ git+https://github.com/betaboon/python-semantic-release.git@85eae44b00ed01e5fe531403999c730eb4fa58fa",
"types-requests>=2.28.11.4",
]
test = [
"pytest>=7.1.2",
"pytest-asyncio>=0.20.1",
]
[tool.pdm.scripts]
install-git-hooks = "pre-commit install --install-hooks"
lint = "pre-commit run --all-files"
test = "pytest"
[tool.pdm.scripts.ci-lint]
cmd = [
"pre-commit", "run",
"--show-diff-on-failure",
"--from-ref", "$FROM_REF",
"--to-ref", "$TO_REF",
]
[tool.pdm.scripts.ci-commit-lint]
cmd = [
"gitlint",
"--contrib", "contrib-title-conventional-commits",
"--ignore", "body-is-missing",
"--commits", "$FROM_REF..$TO_REF",
]
[tool.pdm.scripts.ci-version]
cmd = "semantic-release print-version --next"
[tool.pdm.scripts.ci-changelog]
cmd = "semantic-release changelog --unreleased"
[tool.pdm.version]
source = "scm"
write_to = "testcontainers_on_whales/__version__.py"
write_template = "__version__ = '{}'"
[tool.semantic_release]
branch = "main"
version_source = "tag_only"
version_pattern = "d+.d+.d+"
tag_format = "{version}"
[tool.black]
line-length = 88
[tool.flake8]
# Recommend matching the black line length (default 88),
# rather than using the flake8 default of 79:
max-line-length = 88
extend-ignore = [
# See https://github.com/PyCQA/pycodestyle/issues/373
"E203",
]
per-file-ignores = [
# imported but unused
"__init__.py:F401",
# comparison to True should be 'if cond is True:' or 'if cond:'
"tests/*:E712",
]
exclude = [
"__pypackages__",
"build",
"dist",
]
[tool.isort]
profile = "black"
atomic = true
filter_files = true
[tool.pytest.ini_options]
addopts = "-ra --ignore=__pypackages__"
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"