-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
92 lines (81 loc) · 2.52 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "pytest-aioboto3"
version = "0.5.0"
description = "Aioboto3 Pytest with Moto"
authors = ["Shipwell Engineering", "Phillip Verheyden"]
license = "WTFPL"
readme = "README.md"
homepage = "https://github.com/phillipuniverse/pytest-aioboto3"
repository = "https://github.com/phillipuniverse/pytest-aioboto3"
keywords = ["pytest", "aioboto3", "moto"]
classifiers = [
"Framework :: Pytest",
"Programming Language :: Python :: 3",
"License :: Public Domain",
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/phillipuniverse/pytest-aioboto3/issues"
[tool.poetry.dependencies]
python = "^3.8"
aioboto3 = ">=12.0.0"
moto = {extras = ["s3", "server"], version = ">=4.2.3"}
types-aiobotocore = {extras = ["s3"], version = ">=2.7.0"}
requests = ">=2.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
boto3-stubs = {extras = ["s3"], version = "^1.28.70"}
pytest-asyncio = "^0.21.1"
ruff = "^0.8.0"
[tool.ruff]
target-version = "py38"
line-length = 100
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C40", # flake8-comprehensions
"C90", # mccabe
"UP", # pyupgrade
"B", # flake8-bugbear
"A", # flake8-builtins
"T10", # flake8-debugger
"BLE", # flake8-blind-except
"T20", # flake8-print
"DTZ", # flake8-datetimez
"PIE", # flake8-pie
"ERA", # eradicate
"PL", # pylint
"SIM", # flake8-simplify
"ERA", # eradicate,
"RUF", # ruff-specific
"TRY", # tryceratops
"PTH", # flake8-use-pathlib"
"PGH", # pygrep-hooks
"TID", # tidy imports
"ICN"
]
lint.ignore = [
"E501", # line too long, handled by formatter
"B008", # function calls in argument defaults
"C401", # generator syntax for sets vs always force set comprehension
"PLC0414", # allow explicit re-exports using 'as' without forcing __all__
"TRY003", # long messages outside except classes
"PLR2004", # magic values refactor to constants
]
[tool.ruff.format]
docstring-code-format = true
[tool.pytest.ini_options]
testpaths = [
"tests"
]
filterwarnings = [
'error', # treat all warnings as errors
"ignore:datetime.datetime.utcnow\\(\\) is deprecated and scheduled for removal in a future version.*:DeprecationWarning", # see https://github.com/aio-libs/aiobotocore/issues/1021#issuecomment-1938713736
]
asyncio_mode = "auto"
[tool.poetry.plugins."pytest11"]
pytest-aioboto3 = 'pytest_aioboto3'