forked from pgbouncer/pgbouncer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
27 lines (24 loc) · 1010 Bytes
/
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
[tool.pytest.ini_options]
addopts = [
"--import-mode=prepend",
"--showlocals",
"--tb=short",
]
timeout = 30
# The asyncio_mode setting doesn't work on outdated versions of pytest-asyncio.
# For python 3.6 no version is available that supports the asyncio_mode
# setting, and for some of the older OSes Python 3.6 is the newest python
# available. So @pytest.mark.asyncio is used everywhere instead. Once none of
# our supported OSes require usage we can drop those marks and rely on the
# asyncio_mode setting instead.
# On these outdated versions having this setting in the config will throw a
# warning, but we still add it anyway. The reason is that by adding it async
# fixtures work on all versions, and are pretty much impossible to make work
# otherwise without lots of version checks. So having a warning on outdated
# versions is a small price to pay to not have to worry about that.
asyncio_mode = 'auto'
[tool.isort]
profile = 'black'
skip = 'lib'
[tool.black]
extend-exclude = 'lib'