forked from pgbouncer/pgbouncer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
41 lines (37 loc) · 1.2 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
[tool.pytest.ini_options]
addopts = [
"--import-mode=prepend",
"--showlocals",
"--tb=short",
]
markers = [
"md5: uses MD5, will fail in FIPS mode",
]
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'
# Make test discovery quicker
norecursedirs = [
'*.egg',
'.*',
'__pycache__',
'venv',
'src',
'lib',
'uthash',
]
[tool.isort]
profile = 'black'
skip = 'lib,uthash'
[tool.black]
extend-exclude = 'lib|uthash'