-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
152 lines (131 loc) · 4.05 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
147
148
149
150
151
152
[tool.poetry]
name = "pytest-mock-resources"
version = "2.12.1"
description = "A pytest plugin for easily instantiating reproducible mock resources."
authors = [
"Omar Khan <oakhan3@gmail.com>",
"Dan Cardin <ddcardin@gmail.com>",
"Gabriel Michael <gabriel.j.michael@gmail.com>",
"Prateek Pisat <pisatprateek12@gmail.com>",
]
license = "MIT"
keywords = [ "pytest", "sqlalchemy", "docker", "fixture", "mock" ]
classifiers = [ "Framework :: Pytest" ]
repository = "https://github.com/schireson/pytest-mock-resources"
packages = [
{ include = "pytest_mock_resources", from = "src" },
]
readme = 'README.md'
include = [
"*.md",
"py.typed",
]
[tool.poetry.dependencies]
python = ">=3.7, <4"
pytest = {version = ">=1.0"}
sqlalchemy = {version = ">1.0, !=1.4.0, !=1.4.1, !=1.4.2, !=1.4.3, !=1.4.4, !=1.4.5, !=1.4.6, !=1.4.7, !=1.4.8, !=1.4.9, !=1.4.10, !=1.4.11, !=1.4.12, !=1.4.13, !=1.4.14, !=1.4.15, !=1.4.16, !=1.4.17, !=1.4.18, !=1.4.19, !=1.4.20, !=1.4.21, !=1.4.22, !=1.4.23"}
typing_extensions = "*"
importlib-metadata = {version = "*", python = "<3.8"}
# extra [postgres]
psycopg2 = {version = "*", optional = true}
psycopg2-binary = {version = "*", optional = true}
asyncpg = {version = "*", optional = true}
# extra [redshift]
moto = {version = "*", optional = true}
boto3 = {version = "*", optional = true}
sqlparse = {version = "*", optional = true}
# extra [mongo]
pymongo = {version = "*", optional = true}
# extra [redis]
redis = {version = "*", optional = true}
# extra [mysql]
pymysql = {version = ">=1.0", optional = true}
# extra [docker]
filelock = {version = "*", optional = true}
python-on-whales = {version = ">=0.22.0", optional = true}
[tool.poetry.dev-dependencies]
botocore = "1.33.13"
coverage = "*"
moto = ">=2.3.2"
mypy = {version = "0.982"}
pytest-asyncio = "*"
pytest-xdist = "*"
responses = ">=0.23.0"
ruff = "0.1.15"
types-PyMySQL = "^1.0.2"
types-dataclasses = "^0.6.5"
types-filelock = "^3.2.7"
types-redis = "^3.5.6"
types-requests = "*"
types-six = "^1.16.0"
[tool.poetry.extras]
docker = ['python-on-whales', 'filelock']
postgres = ['psycopg2', 'python-on-whales', 'filelock']
postgres-binary = ['psycopg2-binary', 'python-on-whales', 'filelock']
postgres-async = ['asyncpg', 'python-on-whales', 'filelock']
redshift = ['boto3', 'moto', 'sqlparse', 'python-on-whales', 'filelock']
mongo = ['pymongo', 'python-on-whales', 'filelock']
moto = ['boto3', 'python-on-whales', 'filelock']
redis = ['redis', 'python-on-whales', 'filelock']
mysql = ['pymysql', 'python-on-whales', 'filelock']
[tool.poetry.plugins.pytest11]
pytest_mock_resources = "pytest_mock_resources"
[tool.poetry.scripts]
pmr = "pytest_mock_resources.cli:main"
[tool.ruff]
src = ["src", "tests"]
line-length = 100
target-version = "py37"
select = ["C", "D", "E", "F", "I", "N", "Q", "RET", "RUF", "S", "T", "UP", "YTT"]
ignore = [
"D1",
"D203",
"D204",
"D213",
"D215",
"D400",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",
"C901",
"E501",
"S101",
]
[tool.ruff.isort]
known-first-party = ["pytest_mock_resources", "tests"]
order-by-type = false
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["D", "S", "RUF012", "N801"]
[tool.mypy]
strict_optional = true
ignore_missing_imports = true
warn_unused_ignores = true
incremental = true
plugins = 'sqlalchemy.ext.mypy.plugin'
exclude = 'tests/examples'
[tool.pytest.ini_options]
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ELLIPSIS"
addopts = "--doctest-modules -vv --ff --strict-markers"
norecursedirs = ".* build dist *.egg tests/examples"
pytester_example_dir = "tests/examples"
pmr_multiprocess_safe = true
markers = [
"postgres",
"redshift",
"mongo",
"redis",
"mysql",
]
filterwarnings = [
"error",
"ignore:There is no current event loop:DeprecationWarning",
"ignore:stream argument is deprecated. Use stream parameter in request directly:DeprecationWarning",
"ignore:Boto3 will no longer support Python 3.7.*::boto3",
"ignore:datetime.datetime.utcnow.*:DeprecationWarning",
]
[build-system]
requires = ["poetry_core==1.0.8"]
build-backend = "poetry.core.masonry.api"