-
Notifications
You must be signed in to change notification settings - Fork 389
/
Copy pathpyproject.toml
41 lines (34 loc) · 1.11 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
[build-system]
requires = [
"jupyter-packaging >= 0.10",
"setuptools >= 40.9.0",
"wheel",
]
build-backend = "setuptools.build_meta"
# black is used for autoformatting Python code
[tool.black]
# target-version should be all supported versions, see
# https://github.com/psf/black/issues/751#issuecomment-473066811
target-version = ["py38", "py39", "py310", "py311"]
# The default isort output conflicts with black autoformatting.
# Tell isort to behave nicely with black
# See https://pycqa.github.io/isort/docs/configuration/black_compatibility.html
# for more information.
[tool.isort]
profile = "black"
# pytest is used for running Python based tests
[tool.pytest.ini_options]
# Run playwright tests only on firefox
# Retain playwright traces after failing tests, to help with debugging
addopts = "--verbose --color=yes --durations=10 --browser firefox --tracing retain-on-failure"
asyncio_mode = "auto"
testpaths = ["tests"]
timeout = "60"
# pytest-cov / coverage is used to measure code coverage of tests
[tool.coverage.run]
omit = [
"binderhub/tests/*",
"binderhub/_version.py",
"versioneer.py",
]
parallel = true